Home | History | Annotate | Download | only in gen
History log of /src/lib/libc/gen/xsyslog.c
RevisionDateAuthorComments
 1.7  02-Mar-2020  christos Add sysloglike attr.
 1.6  02-Mar-2020  christos PR/55041: Fix printf format in syslog(3) error message.
 1.5  18-Apr-2017  maya branches: 1.5.12;
always initialize iovcnt

from clang static analyzer
 1.4  22-Mar-2017  kre Unbreak build, init variable (not a false alarm for this one.)
 1.3  22-Mar-2017  roy 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
 1.2  12-Jan-2017  christos branches: 1.2.2; 1.2.4;
A little more restructuring so that we don't need mutex stuff in syslog_ss.
 1.1  12-Jan-2017  christos 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.
 1.2.4.3  26-Apr-2017  pgoyette Sync with HEAD
 1.2.4.2  20-Mar-2017  pgoyette Sync with HEAD
 1.2.4.1  12-Jan-2017  pgoyette file xsyslog.c was added on branch pgoyette-localcount on 2017-03-20 06:56:57 +0000
 1.2.2.1  21-Apr-2017  bouyer Sync with HEAD
 1.5.12.1  08-Apr-2020  martin Merge changes from current as of 20200406

RSS XML Feed