aboutsummaryrefslogtreecommitdiff
path: root/log.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-11-05 16:13:39 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-11-13 10:04:28 +0000
commit176b85cb10a6cafe9376e5bfa99206a3a9feacad (patch)
tree9fee24ab3597f5df24c747d9f7d9d2d715151a3f /log.h
parentconfig: first argument to log_and_notify() is now a ‘struct context’ (diff)
config: add LOG_CONTEXTUAL_{ERR,WARN,ERRNO}
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.
Diffstat (limited to 'log.h')
-rw-r--r--log.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/log.h b/log.h
index dc458199..e499cf29 100644
--- a/log.h
+++ b/log.h
@@ -11,7 +11,8 @@ enum log_class {
LOG_CLASS_ERROR,
LOG_CLASS_WARNING,
LOG_CLASS_INFO,
- LOG_CLASS_DEBUG
+ LOG_CLASS_DEBUG,
+ LOG_CLASS_COUNT,
};
void log_init(enum log_colorize colorize, bool do_syslog,