mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-05-02 06:46:32 -04: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
|
|
@ -15,7 +15,7 @@ complete -c foot -x -s W -l window-size-chars
|
|||
complete -c foot -F -s s -l server -d "run as server; open terminals by running footclient"
|
||||
complete -c foot -s H -l hold -d "remain open after child process exits"
|
||||
complete -c foot -r -s p -l print-pid -d "print PID to this file or FD when up and running (server mode only)"
|
||||
complete -c foot -x -s d -l log-level -a "info warning error" -d "log-level (info)"
|
||||
complete -c foot -x -s d -l log-level -a "info warning error none" -d "log-level (info)"
|
||||
complete -c foot -x -s l -l log-colorize -a "always never auto" -d "enable or disable colorization of log output on stderr"
|
||||
complete -c foot -s S -l log-no-syslog -d "disable syslog logging (server mode only)"
|
||||
complete -c foot -s v -l version -d "show the version number and quit"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue