#
1b119018 |
| 22-Mar-2017 |
roy <roy@NetBSD.org> |
openlog(3): add LOG_PTRIM and LOG_NLOG log options.
syslog(3) is the one stop method of logging system events and diagnostics. When debugging a daemon in the foreground on a terminal, each line is p
openlog(3): add LOG_PTRIM and LOG_NLOG log options.
syslog(3) is the one stop method of logging system events and diagnostics. When debugging a daemon in the foreground on a terminal, each line is prefixed with tag[pid]: which is very repetative and can take up valuable screen estate. LOG_PTRIM solves this by removing this prefix from stderr output.
There is also the case where the debugging could involve a dry-run and syslog(3) calls would pollute the system log with incorrect data. LOG_NLOG solves this by not writing the the system log, but allowing LOG_PERROR to operate as before.
Initially discussed here: https://mail-index.netbsd.org/tech-userlevel/2016/10/06/msg010330.html
show more ...
|
#
820e172c |
| 12-Jan-2017 |
christos <christos@NetBSD.org> |
Split syslog.c to:
- syslog_ss.c *_ss api functions (don't use stdio, time) - syslog.c: *syslog* non _ss api functions (use stdio, time) - xsyslog.c> common guts.
The motivation for this is not to
Split syslog.c to:
- syslog_ss.c *_ss api functions (don't use stdio, time) - syslog.c: *syslog* non _ss api functions (use stdio, time) - xsyslog.c> common guts.
The motivation for this is not to drag in stdio/locale/floating point/time for every binary, since syslog_ss() is used in __stack_check_fail() for SSP.
show more ...
|