AWS SDK for C++

AWS SDK for C++ Version 1.11.807

Loading...
Searching...
No Matches
CRTLogSystem.h
1
6#pragma once
7
8#include <aws/core/Core_EXPORTS.h>
9#include <aws/core/utils/logging/LogLevel.h>
10#include <aws/common/logging.h>
11
12#include <atomic>
13
14namespace Aws
15{
16 namespace Utils
17 {
18 namespace Logging
19 {
20 enum class LogLevel : int;
21
26 class AWS_CORE_API CRTLogSystemInterface
27 {
28 public:
29 virtual ~CRTLogSystemInterface() = default;
30
34 virtual LogLevel GetLogLevel() const = 0;
38 virtual void SetLogLevel(LogLevel logLevel) = 0;
39
44 virtual void Log(LogLevel logLevel, const char* subjectName, const char* formatStr, va_list args) = 0;
45
49 virtual void CleanUp() {return;}
50 };
51 } // namespace Logging
52 } // namespace Utils
53} // namespace Aws
54
55// for backward compatibility
56#include <aws/core/utils/logging/DefaultCRTLogSystem.h>
virtual LogLevel GetLogLevel() const =0
virtual void SetLogLevel(LogLevel logLevel)=0
virtual void Log(LogLevel logLevel, const char *subjectName, const char *formatStr, va_list args)=0