AWS SDK for C++  1.7.243
AWS SDK for C++
Classes | Enumerations | Functions
Aws::Utils::Logging Namespace Reference

Classes

class  ConsoleLogSystem
 
class  DefaultLogSystem
 
class  FormattedLogSystem
 
class  LogSystemInterface
 
class  NullLogSystem
 

Enumerations

enum  LogLevel : int {
  LogLevel::Off = 0, LogLevel::Fatal = 1, LogLevel::Error = 2, LogLevel::Warn = 3,
  LogLevel::Info = 4, LogLevel::Debug = 5, LogLevel::Trace = 6
}
 

Functions

AWS_CORE_API void InitializeAWSLogging (const std::shared_ptr< LogSystemInterface > &logSystem)
 
AWS_CORE_API void ShutdownAWSLogging (void)
 
AWS_CORE_API LogSystemInterfaceGetLogSystem ()
 
AWS_CORE_API void PushLogger (const std::shared_ptr< LogSystemInterface > &logSystem)
 
AWS_CORE_API void PopLogger ()
 
AWS_CORE_API Aws::String GetLogLevelName (LogLevel logLevel)
 

Enumeration Type Documentation

◆ LogLevel

enum Aws::Utils::Logging::LogLevel : int
strong

LogLevel used to control verbosity of logging system.

Enumerator
Off 
Fatal 
Error 
Warn 
Info 
Debug 
Trace 

Definition at line 32 of file LogLevel.h.

Function Documentation

◆ GetLogLevelName()

AWS_CORE_API Aws::String Aws::Utils::Logging::GetLogLevelName ( LogLevel  logLevel)

◆ GetLogSystem()

AWS_CORE_API LogSystemInterface* Aws::Utils::Logging::GetLogSystem ( )

Get currently configured log system instance.

◆ InitializeAWSLogging()

AWS_CORE_API void Aws::Utils::Logging::InitializeAWSLogging ( const std::shared_ptr< LogSystemInterface > &  logSystem)

Call this at the beginning of your program, prior to any AWS calls.

◆ PopLogger()

AWS_CORE_API void Aws::Utils::Logging::PopLogger ( )

Pops the logger off the logger stack and replaces the current logger with it. Disables logging if the top logger is actually a nullptr

◆ PushLogger()

AWS_CORE_API void Aws::Utils::Logging::PushLogger ( const std::shared_ptr< LogSystemInterface > &  logSystem)

Replaces the current logger with a new one, while pushing the old one onto a 1-deep stack; primarily for testing

◆ ShutdownAWSLogging()

AWS_CORE_API void Aws::Utils::Logging::ShutdownAWSLogging ( void  )

Call this at the exit point of your program, after all calls have finished.