forked from microsoft/CLRInstrumentationEngine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEventLoggerSink.h
More file actions
38 lines (27 loc) · 912 Bytes
/
EventLoggerSink.h
File metadata and controls
38 lines (27 loc) · 912 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#pragma once
#include "LoggerService.h"
#include "LoggerSink.h"
#include "../Common.Lib/EventLoggingBase.h"
namespace MicrosoftInstrumentationEngine
{
class CEventLoggerSink :
public ILoggerSink,
public CEventLoggingBase
{
private:
CInitOnce m_initEventSource;
public:
CEventLoggerSink();
~CEventLoggerSink();
// ILoggerSink Members
protected:
HRESULT Initialize(_In_ CLoggerService* pLogging) override;
void LogMessage(_In_ LPCWSTR wszMessage) override;
void LogError(_In_ LPCWSTR wszMessage) override;
void LogDumpMessage(_In_ LPCWSTR wszMessage) override;
HRESULT Reset(_In_ LoggingFlags defaultFlags, _Out_ LoggingFlags* pEffectiveFlags) override;
HRESULT Shutdown() override;
};
}