MCPcopy Create free account
hub / github.com/git/git / openlog

Function openlog

compat/win32/syslog.c:5–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3static HANDLE ms_eventlog;
4
5void 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
16void syslog(int priority, const char *fmt, ...)
17{

Callers 1

cmd_mainFunction · 0.85

Calls 1

warningFunction · 0.85

Tested by

no test coverage detected