package mirage-runtime

  1. Overview
  2. Docs
On This Page
  1. Log thresholds
Legend:
Library
Module
Module type
Parameter
Class
Class type

Mirage run-time utilities.

Release 3.3.0

Log thresholds

type log_threshold = [ `All | `Src of string ] * Logs.level

The type for log threshold.

val set_level : default:Logs.level -> log_threshold list -> unit

set_level ~default l set the log levels needed to have all of the log sources appearing in l be used.

module Arg : sig ... end
include module type of Functoria_runtime with module Arg := Arg
module Key : sig ... end

Key defines values that can be set by runtime command-line arguments. This module is the runtime companion of Functoria_key.

val with_argv : unit Cmdliner.Term.t list -> string -> string array -> unit

with_argv keys name argv evaluates the keys terms on the command-line argv. name is the executable name. On evaluation error the application calls exit(3) with status 64. If `Help or `Version were evaluated, exit(3) is called with status 63.