[exim-dev] [Bug 2982] Writing logs to standard output

Inizio della pagina
Delete this message
Reply to this message
Autore: admin
Data:  
To: exim-dev
Oggetto: [exim-dev] [Bug 2982] Writing logs to standard output
https://bugs.exim.org/show_bug.cgi?id=2982

Martin Kealey <from-exim-bugzilla@???> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |from-exim-bugzilla@kurahaup
                   |                            |o.gen.nz


--- Comment #1 from Martin Kealey <from-exim-bugzilla@???> ---
Exim can use syslog, and rsyslogd or syslogngd you can configure the daemons to
match based on the details of the sending process and/or the body of the
message, not just the labelled facility and severity.

Or link with this:

#include <sys/types.h>
#include <unistd.h>
#include <time.h>
#include <syslog.h>
#include <stdio.h>

void openlog(chat *ident, int option, int facility )
{}

void 
syslog(int prio, char *msg, ...)
{
  struct timespec t;
  clock_gettime(CLOCK_REALTIME, &t);
  struct tm T;
  char tt[20];
  strftime(tt, sizeof tt, "%F %T", gmtime_r(t.tv_sec, &T)),
  printf("%s.%.4u [%u] ",
    tt, t.tv_nsec/100000,
    getpid());
  va_list v;
  va_start(v,msg);
  vprintf(m, v);
  va_end(v);
}


void closesyslog()
{
fflush(stdout);
}

--
You are receiving this mail because:
You are on the CC list for the bug.