file-logger: Take options as a struct and combine ms/us suffix options

References strongswan/strongswan#2475
This commit is contained in:
Tobias Brunner
2024-10-25 14:49:11 +02:00
parent 768fec23bc
commit f09b8203d3
5 changed files with 123 additions and 72 deletions
+4 -7
View File
@@ -46,13 +46,10 @@ charon.filelog.<name>.time_format
Prefix each log entry with a timestamp. The option accepts a format string
as passed to **strftime**(3).
charon.filelog.<name>.time_add_ms = no
Adds the milliseconds within the current second after the timestamp
(separated by a dot, so _time_format_ should end with %S or %T).
charon.filelog.<name>.time_add_us = no
Adds the microseconds within the current second after the timestamp
(separated by a dot, so _time_format_ should end with %S or %T).
charon.filelog.<name>.time_precision =
Add the milliseconds (_ms_) or microseconds (_us_) within the current second
after the timestamp (separated by a dot, so _time_format_ should end
with %S or %T). By default, nothing is added.
charon.syslog {}
Section to define syslog loggers, see LOGGER CONFIGURATION in