Warning: Reason support is experimental. We are looking for beta-tester and contributors.

Module Lwt_log_core.Section

module Section : sig..end


type t = Lwt_log_core.section
val make : string -> Lwt_log_core.section

make name creates a section with the given name. Two calls to Lwt_log_core.Section.make with the same name will return the same section object.

val name : Lwt_log_core.section -> string

name section returns the name of section.

val main : Lwt_log_core.section

The main section. It is the section used by default when no one is provided.

val level : Lwt_log_core.section -> Lwt_log_core.level

level section returns the logging level of section.

val set_level : Lwt_log_core.section -> Lwt_log_core.level -> unit

set_level section sets the logging level of the given section. Modifications of rules using Lwt_log_core.add_rule won't affect the level of this section after this operation.

val reset_level : Lwt_log_core.section -> unit

reset_level section resets the level of section to its default value, i.e. to the value obtained by applying rules.