Module Logs.Src
Sources.
Sources
type t= srcThe type for log sources.
val create : ?doc:string -> string -> srccreate ?doc nameis a new log source.nameis the name of the source; it doesn't need to be unique but it is good practice to prefix the name with the name of your package or library (e.g."mypkg.network").docis a documentation string describing the source, defaults to"undocumented". The initial reporting level of the source is defined byLogs.level.
val name : src -> stringnameissrc's name.
val doc : src -> stringdoc srcissrc's documentation string.
val set_level : src -> level option -> unitset_level src lsets the report level ofsrctol. Only applications should use this function directly, see usage conventions.
val pp : Stdlib.Format.formatter -> src -> unitpp ppf srcprints an unspecified representation ofsrconppf.
val list : unit -> src listlist ()is the current exisiting source list.