mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-06-16 00:05:40 +02:00
log: make syslog facility and level configurable, always log filename+lineno
This commit is contained in:
parent
df1a004f97
commit
0794b453dd
3 changed files with 26 additions and 15 deletions
2
main.c
2
main.c
|
@ -275,7 +275,7 @@ main(int argc, char *const *argv)
|
|||
}
|
||||
}
|
||||
|
||||
log_init(log_colorize, log_syslog);
|
||||
log_init(log_colorize, log_syslog, LOG_FACILITY_USER, LOG_CLASS_WARNING);
|
||||
|
||||
const struct sigaction sa = {.sa_handler = &signal_handler};
|
||||
sigaction(SIGINT, &sa, NULL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue