18 #include <aws/core/utils/logging/LogLevel.h> 19 #include <aws/core/utils/logging/LogSystemInterface.h> 24 #define DEFAULT_LOG_MESSAGE_SIZE_BYTES 1024 30 class AWSLogSystem :
public Aws::Utils::Logging::LogSystemInterface
33 explicit AWSLogSystem(Aws::Utils::Logging::LogLevel log_level);
39 Aws::Utils::Logging::LogLevel
GetLogLevel()
const override;
42 void SetLogLevel(Aws::Utils::Logging::LogLevel log_level);
45 void Log(Aws::Utils::Logging::LogLevel log_level,
const char * tag,
const char * format,
49 void LogStream(Aws::Utils::Logging::LogLevel log_level,
const char * tag,
50 const Aws::OStringStream & message_stream)
override;
53 virtual void LogInfo(
const char * tag,
const std::string & message) = 0;
54 virtual void LogDebug(
const char * tag,
const std::string & message) = 0;
55 virtual void LogTrace(
const char * tag,
const std::string & message) = 0;
56 virtual void LogWarn(
const char * tag,
const std::string & message) = 0;
57 virtual void LogError(
const char * tag,
const std::string & message) = 0;
58 virtual void LogFatal(
const char * tag,
const std::string & message) = 0;
63 void LogMessage(Aws::Utils::Logging::LogLevel log_level,
const char * tag,
64 const std::string & message);
virtual void LogDebug(const char *tag, const std::string &message)=0
virtual void LogInfo(const char *tag, const std::string &message)=0
virtual void LogFatal(const char *tag, const std::string &message)=0
void Log(Aws::Utils::Logging::LogLevel log_level, const char *tag, const char *format,...) override
void LogMessage(Aws::Utils::Logging::LogLevel log_level, const char *tag, const std::string &message)
Aws::Utils::Logging::LogLevel GetLogLevel() const override
AWSLogSystem(Aws::Utils::Logging::LogLevel log_level)
virtual void LogTrace(const char *tag, const std::string &message)=0
~AWSLogSystem() override=default
void LogStream(Aws::Utils::Logging::LogLevel log_level, const char *tag, const Aws::OStringStream &message_stream) override
virtual void LogWarn(const char *tag, const std::string &message)=0
AWSLogSystem & operator=(AWSLogSystem const &)=delete
void SetLogLevel(Aws::Utils::Logging::LogLevel log_level)
std::atomic< Aws::Utils::Logging::LogLevel > configured_log_level_
virtual void LogError(const char *tag, const std::string &message)=0