Prefix each log entry with a timestamp. The option accepts a format string as
passed to
.BR strftime (3).
+.TP
+.BR charon.syslog.identifier
+Global identifier used for an
+.BR openlog (3)
+call, prepended to each log message by syslog. If not configured,
+.BR openlog (3)
+is not called, so the value will depend on system defaults (often the program
+name).
.SS Subsystems
.TP
sys_logger_t *sys_logger;
file_logger_t *file_logger;
enumerator_t *enumerator;
- char *facility, *filename;
+ char *identifier, *facility, *filename;
int loggers_defined = 0;
debug_t group;
level_t def;
FILE *file;
/* setup sysloggers */
+ identifier = lib->settings->get_str(lib->settings,
+ "charon.syslog.identifier", NULL);
+ if (identifier)
+ { /* set identifier, which is prepended to each log line */
+ openlog(identifier, 0, 0);
+ }
enumerator = lib->settings->create_section_enumerator(lib->settings,
"charon.syslog");
while (enumerator->enumerate(enumerator, &facility))