mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
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.
This commit is contained in:
parent
534e9d8bef
commit
176b85cb10
2 changed files with 170 additions and 295 deletions
3
log.h
3
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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue