[exim] make log timestamp optional?

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Mike Sturdee
Date:  
À: exim-users
Sujet: [exim] make log timestamp optional?
I have a need for exim to log w/o the timestamp like "syslog_timestamp =
false", but for the main/reject/panic logs.

I have found that the following accomplishes my needs:

==================================================================
--- work/exim-4.44/src/log.c.orig       Tue Mar  1 10:11:56 2005
+++ work/exim-4.44/src/log.c    Tue Mar  1 10:12:41 2005
@@ -715,9 +715,7 @@
  id except for the process log and when called by a utility. */


ptr = log_buffer;
-if (really_exim && (flags & LOG_PROCESS) == 0 && message_id[0] != 0)
- sprintf(CS ptr, "%s %s ", tod_stamp(tod_log), message_id);
-else sprintf(CS ptr, "%s ", tod_stamp(tod_log));
+sprintf(CS ptr, "%s ", message_id);

while(*ptr) ptr++;
if ((flags & LOG_CONFIG) != 0) ptr = log_config_info(ptr, flags);
==================================================================

Would it be possible to add a configure toggle option to the exim dist for
this?

Thanks,

-Mike