package sihl

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Logging infrastructure.

Installation

Use the provided Sihl.Log.Service.Make to create a log service that logs to stdout.

module Log = Sihl.Log.Service.Make ()
module Service : sig ... end

Usage

The log level can be set using LOG_EVEL to values: error, debug, info.

Example usage:

Log.debug (fun m -> m "This will be printed for LOG_LEVEL=debug and LOG_LEVEL=error");
Log.info (fun m -> m "This will be printed for LOG_LEVEL=info with an int %d and a string %d" 12 "foobar");
OCaml

Innovation. Community. Security.