mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
log: add LOG_CLASS_NONE and use as initializer for log_level
This means that logging will be completely disabled until log_init()
has been called, which is useful to prevent log spam when running
UNITTEST{} blocks in debug builds.
Note that this doesn't change the default log level at runtime, which
was already being set to LOG_CLASS_INFO in main.c and client.c.
The new log level is also exposed to the command-line interface as
`--log-level=none`, which allows disabling logging entirely.
This commit is contained in:
parent
0ff8f72a9d
commit
5dca0458a0
14 changed files with 113 additions and 93 deletions
|
|
@ -126,7 +126,7 @@ the foot command line
|
|||
|
||||
This option can only be used in combination with *-s*,*--server*.
|
||||
|
||||
*-d*,*--log-level*={*info*,*warning*,*error*}
|
||||
*-d*,*--log-level*={*info*,*warning*,*error*,*none*}
|
||||
Log level, used both for log output on stderr as well as
|
||||
syslog. Default: _info_.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue