package pplumbing

  1. Overview
  2. Docs

Module Err.PrivateSource

Private is used by Log_cli. We mean both libraries to work as companion libs. Note any of this can change without notice and without requiring a semver bump, so use at your own risk (or don't).

Sourceval am_running_test : bool ref
Sourceval reset_counts : unit -> unit
Sourceval reset_separator : unit -> unit
Sourceval color_mode : Color_mode.t ref
Sourceval set_log_level : get:(unit -> Log_level.t) -> set:(Log_level.t -> unit) -> unit

Since Err does not depend on Logs, the Err and Logs levels must be set independently. However, this is done for you consistently if you are using Log_cli.

Sourceval warn_error : bool ref
Sourceval set_log_counts : err_count:(unit -> int) -> warn_count:(unit -> int) -> unit

To avoid making this library depend on Logs we inject the dependency into the functions we need instead. To be called with Logs.err_count and Logs.warn_count.

OCaml

Innovation. Community. Security.