package easy_logging

  1. Overview
  2. Docs

Default implementation of a Logging module.

class logger : string -> log_level option -> Default_handlers.desc list -> object ... end
val make_logger : string -> log_level option -> Default_handlers.desc list -> logger

make_logger name level handlers_descs creates a new logger instance from the given arguments, then register it internally, and returns it.

val _loggers : (string, logger) Hashtbl.t

Internally registered loggers.

val set_level : string -> log_level option -> unit

set_level prefix level sets the level of all registered loggers whose name begins by prefix to level.

val get_logger : string -> logger

Returns a registered logger.

val dummy : logger

dummy logger : does nothing.

OCaml

Innovation. Community. Security.