package lambdapi
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=2c251021b6fac40c05282ca183902da5b1008e69d9179d7a9543905c2c21a28a
sha512=69535f92766e6fedc2675fc214f0fb699bde2a06aa91d338c93c99756235a293cf16776f6328973dda07cf2ad402e58fe3104a08f1a896990c1778b42f7f9fcf
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.