package soteria
Install
dune-project
Dependency
Authors
Maintainers
Sources
md5=8f15271b81e34caa12a39e3b7a63313a
sha512=5f6987cf362bc06402d9bed324c7b060384d7ef02479e2a614ca4b4122cc65082f6afc892c398c6562b0eb42fc13d6cc77e76c2518221590576215aaa00ee5bd
doc/soteria/Soteria/Logs/Config/index.html
Module Logs.Config
type t = {level : Level.t option;(*The current level of logging,
*)Noneif disabled.kind : log_kind;(*The kind of logging to use.
*)always_log_smt : bool;no_color : bool;(*Whether to disable colors in stderr logging.
*)hide_unstable : bool;(*Whether to hide unstable values like durations (e.g. for diffing purposes).
*)
}val cmdliner_term : unit -> cli Cmdliner.Term.tA Cmdliner term for parsing cli arguments and obtain a Config.t.
val set_and_lock : t -> unitBypass CLI parsing, and manually set the configuration.
val check_set_and_lock : cli -> unitReceives a CLI input configuration (obtained from parsing the Cli arguments using Soteria.Logs.Config.cmdliner_term), checks that parsing went correctly, sets the contained configuration as global configuartion, and locks the configuration to prevent the configuration to be modified during execution.
with_interject ~interject f runs f while using interject as function to interact with Stderr.
This is mostly used to define Soteria.Terminal.Progress_bar.run, which requires interjecting while printing a progress bar to the terminal. Users of Soteria should probably use Soteria.Terminal.Progress_bar directly, and ignore this function.