Spoc_core.Logval log_level : level Stdlib.refCurrent log level (messages at or above this level are shown)
val enabled_components : (component, bool) Stdlib.Hashtbl.tEnabled components
val enable : component -> unitEnable a component
val disable : component -> unitDisable a component
Enable from environment variable SAREK_DEBUG=transfer,kernel,... Use "*" or "all" to enable all components.
val set_level : level -> unitSet log level
val is_enabled : component -> boolCheck if component is enabled
val level_to_int : level -> intLevel to int for comparison
val level_to_string : level -> stringLevel to string
val component_to_string : component -> stringComponent to string
Core logging function - printf style
val debug : component -> string -> unitConvenience functions - string based
val info : component -> string -> unitval warn : component -> string -> unitval error : component -> string -> unitval debugf :
component ->
('a, Stdlib.out_channel, unit, unit) Stdlib.format4 ->
'aConvenience functions - printf style
val infof :
component ->
('a, Stdlib.out_channel, unit, unit) Stdlib.format4 ->
'aval warnf :
component ->
('a, Stdlib.out_channel, unit, unit) Stdlib.format4 ->
'aval errorf :
component ->
('a, Stdlib.out_channel, unit, unit) Stdlib.format4 ->
'a