package lambdapi
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=221dff97ab245c49b7e6480fa2a3a331ab70eb86dd5d521e2c73151029bbb787
sha512=a39961bb7f04f739660a98a52981d4793709619cd21310ca6982ba78af81ef09e01c7517ee3b8b2687b09f7d2614d878c1d69494ca6ab8ef8205d240c216ce8a
doc/lambdapi.common/Common/Console/index.html
Module Common.Console
Source
Verbose level and loggers management.
out_fmt
main output formatter.
Default verbosity level (may be set with command line arguments).
set_default_verbose i
sets the default verbosity level to i
.
out lvl fmt
prints an output message using the format fmt
, but only if lvl
is strictly greater than the current verbosity level. Note that the output channel is automatically flushed if logging modes are enabled.
List of registered boolean flags, with their default values.
register_flag id d
registers a new boolean flag named id
, with default value of d
. Note the name should not have been used previously.
set_flag id b
sets the value of the flag named id
to be b
, or raises Not_found
if no flag with this name was registered.
reset_default ()
resets the verbosity level and the state of the loggers to their default value (configurable by the user with command line flags). The boolean flags are also reset to their default values.