Improved --logfile option.

Instead of UNIX time, the log messages now start with the time in RFC3339
format, which human-readable and still easy for the computer to parse and sort.
The HUP signal will also cause the log file to be closed and reopened, which is
useful when log rotation is used. If there is an error while opening the log
file, this is logged to stderr.
This commit is contained in:
Guus Sliepen 2011-06-06 16:26:11 +02:00
parent b3bbeab6e6
commit 4b3fd94b1c
7 changed files with 39 additions and 4 deletions

View file

@ -501,6 +501,8 @@ int main_loop(void) {
struct stat s;
sighup = false;
reopenlogger();
/* Reread our own configuration file */