AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
Public Member Functions | List of all members
Aws::Utils::Logging::LogSystemInterface Class Referenceabstract

#include <LogSystemInterface.h>

Inheritance diagram for Aws::Utils::Logging::LogSystemInterface:
[legend]

Public Member Functions

virtual ~LogSystemInterface ()=default
 
virtual LogLevel GetLogLevel (void) const =0
 
virtual void Log (LogLevel logLevel, const char *tag, const char *formatStr,...)=0
 
virtual void vaLog (LogLevel logLevel, const char *tag, const char *formatStr, va_list args)=0
 
virtual void LogStream (LogLevel logLevel, const char *tag, const Aws::OStringStream &messageStream)=0
 
virtual void Flush ()=0
 
virtual void Stop ()
 

Detailed Description

Interface for logging implementations. If you want to write your own logger, you can start here, though you may have more luck going down one more level to FormattedLogSystem. It does a bit more of the work for you and still gives you the ability to override the IO portion.

Definition at line 26 of file LogSystemInterface.h.

Constructor & Destructor Documentation

◆ ~LogSystemInterface()

virtual Aws::Utils::Logging::LogSystemInterface::~LogSystemInterface ( )
virtualdefault

Member Function Documentation

◆ Flush()

virtual void Aws::Utils::Logging::LogSystemInterface::Flush ( )
pure virtual

Writes any buffered messages to the underlying device if the logger supports buffering.

Implemented in Aws::Utils::Logging::ConsoleLogSystem, Aws::Utils::Logging::DefaultLogSystem, and Aws::Utils::Logging::NullLogSystem.

◆ GetLogLevel()

virtual LogLevel Aws::Utils::Logging::LogSystemInterface::GetLogLevel ( void  ) const
pure virtual

Gets the currently configured log level for this logger.

Implemented in Aws::Utils::Logging::FormattedLogSystem, and Aws::Utils::Logging::NullLogSystem.

◆ Log()

virtual void Aws::Utils::Logging::LogSystemInterface::Log ( LogLevel  logLevel,
const char *  tag,
const char *  formatStr,
  ... 
)
pure virtual

Does a printf style output to the output stream. Don't use this, it's unsafe. See LogStream

Implemented in Aws::Utils::Logging::FormattedLogSystem, and Aws::Utils::Logging::NullLogSystem.

◆ LogStream()

virtual void Aws::Utils::Logging::LogSystemInterface::LogStream ( LogLevel  logLevel,
const char *  tag,
const Aws::OStringStream messageStream 
)
pure virtual

Writes the stream to the output stream.

Implemented in Aws::Utils::Logging::FormattedLogSystem, and Aws::Utils::Logging::NullLogSystem.

◆ Stop()

virtual void Aws::Utils::Logging::LogSystemInterface::Stop ( )
inlinevirtual

Stops logging on this logger without destroying the object.

Reimplemented in Aws::Utils::Logging::DefaultLogSystem, and Aws::Utils::Logging::FormattedLogSystem.

Definition at line 54 of file LogSystemInterface.h.

◆ vaLog()

virtual void Aws::Utils::Logging::LogSystemInterface::vaLog ( LogLevel  logLevel,
const char *  tag,
const char *  formatStr,
va_list  args 
)
pure virtual

va_list overload for Log, avoid using this as well.

Implemented in Aws::Utils::Logging::FormattedLogSystem, and Aws::Utils::Logging::NullLogSystem.


The documentation for this class was generated from the following file: