AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
NullLogSystem.h
1
6#pragma once
7
8#include <aws/core/Core_EXPORTS.h>
9
10#include <aws/core/utils/logging/LogSystemInterface.h>
11#include <aws/core/utils/logging/LogLevel.h>
12#include <aws/core/utils/UnreferencedParam.h>
13
14namespace Aws
15{
16 namespace Utils
17 {
18 namespace Logging
19 {
23 class AWS_CORE_API NullLogSystem : public LogSystemInterface
24 {
25 public:
26
28 virtual ~NullLogSystem() {}
29
30 virtual LogLevel GetLogLevel(void) const override { return LogLevel::Off; }
31
32 virtual void Log(LogLevel logLevel, const char* tag, const char* formatStr, ...) override
33 {
34 AWS_UNREFERENCED_PARAM(logLevel);
35 AWS_UNREFERENCED_PARAM(tag);
36 AWS_UNREFERENCED_PARAM(formatStr);
37 }
38
39 virtual void vaLog(LogLevel logLevel, const char* tag, const char* formatStr, va_list args) override
40 {
41 AWS_UNREFERENCED_PARAM(logLevel);
42 AWS_UNREFERENCED_PARAM(tag);
43 AWS_UNREFERENCED_PARAM(formatStr);
44 AWS_UNREFERENCED_PARAM(args);
45 }
46
47 virtual void LogStream(LogLevel logLevel, const char* tag, const Aws::OStringStream &messageStream) override
48 {
49 AWS_UNREFERENCED_PARAM(logLevel);
50 AWS_UNREFERENCED_PARAM(tag);
51 AWS_UNREFERENCED_PARAM(messageStream);
52 }
53
54 virtual void Flush() override {}
55 };
56
57 } // namespace Logging
58 } // namespace Utils
59} // namespace Aws
virtual void vaLog(LogLevel logLevel, const char *tag, const char *formatStr, va_list args) override
virtual LogLevel GetLogLevel(void) const override
virtual void Log(LogLevel logLevel, const char *tag, const char *formatStr,...) override
virtual void Flush() override
virtual void LogStream(LogLevel logLevel, const char *tag, const Aws::OStringStream &messageStream) override
std::basic_ostringstream< char, std::char_traits< char >, Aws::Allocator< char > > OStringStream