cyrus-imapd/cassandane-redirect-syslog.c
2017-05-25 10:33:34 -05:00

18 lines
389 B
C

/* This is used to build an LD_PRELOAD library to redirect syslog calls. */
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
void openlog(const char *ident, int option, int facility) { return; }
void closelog(void) { return; }
void syslog(int priority, const char *format, ...) {
va_list va;
va_start(va, format);
vfprintf(stderr, format, va);
va_end(va);
}