Module Yocaml_runtime.LogSource

Utilities for working with the Logs library in a given runtime.

Types

Sourcetype level = [
  1. | `App
  2. | `Error
  3. | `Warning
  4. | `Info
  5. | `Debug
]

Describe a log-level.

Helpers

Sourceval msg : level -> string -> unit

msg level message log a message with a given message.

Sourceval setup : ?level:level -> unit -> unit

Set-up a default logger.