AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
NullLogSystem.h
Go to the documentation of this file.
1
6#pragma once
7
9
13
14namespace Aws
15{
16 namespace Utils
17 {
18 namespace Logging
19 {
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);
36 AWS_UNREFERENCED_PARAM(formatStr);
37 }
38
39 virtual void LogStream(LogLevel logLevel, const char* tag, const Aws::OStringStream &messageStream) override
40 {
41 AWS_UNREFERENCED_PARAM(logLevel);
43 AWS_UNREFERENCED_PARAM(messageStream);
44 }
45 };
46
47 } // namespace Logging
48 } // namespace Utils
49} // namespace Aws
#define AWS_CORE_API
Definition: Core_EXPORTS.h:26
#define AWS_UNREFERENCED_PARAM(x)
virtual LogLevel GetLogLevel(void) const override
Definition: NullLogSystem.h:30
virtual void Log(LogLevel logLevel, const char *tag, const char *formatStr,...) override
Definition: NullLogSystem.h:32
virtual void LogStream(LogLevel logLevel, const char *tag, const Aws::OStringStream &messageStream) override
Definition: NullLogSystem.h:39
std::basic_ostringstream< char, std::char_traits< char >, Aws::Allocator< char > > OStringStream