package lambdapi
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=1066aed2618fd8e6a400c5147dbf55ea977ce8d3fe2e518ac6785c6775a1b8be
sha512=f7f499626aba92e070ae69581299a58525973fdbfd04a160ed3ac89209fb6cbe307b816d0b23e1b75bc83467ce8b4b0530c6f9816eaf58f7a07fde65a450106c
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.