| 3 | static HANDLE ms_eventlog; |
| 4 | |
| 5 | void openlog(const char *ident, int logopt UNUSED, int facility UNUSED) |
| 6 | { |
| 7 | if (ms_eventlog) |
| 8 | return; |
| 9 | |
| 10 | ms_eventlog = RegisterEventSourceA(NULL, ident); |
| 11 | |
| 12 | if (!ms_eventlog) |
| 13 | warning("RegisterEventSource() failed: %lu", GetLastError()); |
| 14 | } |
| 15 | |
| 16 | void syslog(int priority, const char *fmt, ...) |
| 17 | { |