2 * This module intercepts syslog() library calls and redirects their output
3 * to the standard output stream. For interactive testing.
5 * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands.
9 static char sccsid
[] = "@(#) fakelog.c 1.3 94/12/28 17:42:21";
20 openlog(name
, logopt
, facility
)
28 /* vsyslog - format one record */
30 vsyslog(severity
, fmt
, ap
)
37 vprintf(percent_m(buf
, fmt
), ap
);
42 /* syslog - format one record */
46 VARARGS(syslog
, int, severity
)
51 VASTART(ap
, int, severity
);
52 fmt
= va_arg(ap
, char *);
53 vsyslog(severity
, fmt
, ap
);
57 /* closelog - dummy */