forked from microsoft/CLRInstrumentationEngine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHostLoggerSink.h
More file actions
30 lines (22 loc) · 784 Bytes
/
Copy pathHostLoggerSink.h
File metadata and controls
30 lines (22 loc) · 784 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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#pragma once
#include "LoggerService.h"
#include "LoggerSink.h"
namespace MicrosoftInstrumentationEngine
{
class CHostLoggerSink :
public ILoggerSink
{
private:
CLoggerService* m_pLogging;
CComPtr<IProfilerManagerLoggingHost> m_pLoggingHost;
// 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;
};
}