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

@ -1638,6 +1638,8 @@ it defaults to the maximum time of 15 minutes.
Partially rereads configuration files.
Connections to hosts whose host config file are removed are closed.
New outgoing connections specified in @file{tinc.conf} will be made.
If the --logfile option is used, this will also close and reopen the log file,
useful when log rotation is used.
@item INT
Temporarily increases debug level to 5.

View file

@ -130,6 +130,10 @@ Connections to hosts whose host config file are removed are closed.
New outgoing connections specified in
.Pa tinc.conf
will be made.
If the
.Fl -logfile
option is used, this will also close and reopen the log file,
useful when log rotation is used.
.It INT
Temporarily increases debug level to 5.
Send this signal again to revert to the original level.