| 39 | static volatile LogHandler mHandler; |
| 40 | public: |
| 41 | static void format(Level level, const WCHAR *tag, _Printf_format_string_ const WCHAR *fmt, ...) { |
| 42 | va_list varg1; |
| 43 | LogHandler h = mHandler; |
| 44 | if (h == nullptr || fmt == nullptr) { |
| 45 | return; |
| 46 | } |
| 47 | WCHAR buffer[1024] = {}; |
| 48 | va_start(varg1, fmt); |
| 49 | StringCchVPrintfW(buffer, 1024, fmt, varg1); |
| 50 | va_end(varg1); |
| 51 | h(level, tag, buffer); |
| 52 | } |
| 53 | |
| 54 | static void logBuffer(Level level, const WCHAR *tag, const WCHAR *msg) { |
| 55 | LogHandler h = mHandler; |
nothing calls this directly
no outgoing calls
no test coverage detected