cyrus-imapd/cassandane-redirect-syslog.c

18 lines
389 B
C
Raw Normal View History

2017-05-25 15:33:34 +00:00
/* 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);
}