aboutsummaryrefslogtreecommitdiff
path: root/log.h (follow)
Commit message (Collapse)AuthorAgeLines
* config: add LOG_CONTEXTUAL_{ERR,WARN,ERRNO}Daniel Eklöf2021-11-13-1/+2
| | | | | | These work like LOG_AND_NOTIFY_* but add contextual information: path of the conf file, line number, section name, key/option name and the value.
* log: add LOG_CLASS_NONE and use as initializer for log_levelCraig Barnes2021-06-26-1/+8
| | | | | | | | | | | | 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.
* log: add va_list versions of log_* functionsDaniel Eklöf2021-05-07-6/+22
|
* main: client: factor out some common code for "--log-level" optionCraig Barnes2021-02-11-0/+3
|
* log: log-level applies to messages logged to stderr tooDaniel Eklöf2021-02-09-1/+1
|
* log: include 'fmt' in __VA_ARGS__Daniel Eklöf2020-08-23-13/+13
| | | | | This ensures all calls have at least one __VA_ARGS__ argument, thus making them ISO C99 compliant.
* Replace GCC "unused" and "format" attributes with portable macrosCraig Barnes2020-08-07-3/+4
|
* main: add --print-pid=FILE|FDDaniel Eklöf2020-02-05-1/+4
| | | | | When specified, our PID is written to the specified file (or FD), after we've successfully started up.
* log: caller can control syslog levelDaniel Eklöf2019-12-17-1/+1
|
* log: set syslog facility to LOG_DAEMON when run in server modeDaniel Eklöf2019-11-20-0/+4
|
* initial commit: maps an XDG toplevel windowDaniel Eklöf2019-06-12-0/+35