SA_Logger
Sapphire's Suite's C++ Logger.
Loading...
Searching...
No Matches
Public Member Functions | List of all members
SA::Logger Class Reference

Basic Logger class implementation. More...

#include <Logger.hpp>

Inheritance diagram for SA::Logger:
SA::LoggerBase

Public Member Functions

void IncrementFrameNum () override final
 Increment current registered frame number.
 
uint32_t GetFrameNum () const override final
 Get current registered frame number.
 
- Public Member Functions inherited from SA::LoggerBase
virtual ~LoggerBase ()
 Destructor Destroy all created log streams.
 
virtual void Log (SA::Log _log)
 Push a new log in logger.
 
template<typename ExcepT >
void Assert (ExcepT _exc)
 Process exception.
 
template<typename StreamT , typename... Args>
StreamT & CreateSteam (Args &&... _args)
 Create a new stream to output in.
 
template<typename StreamT >
bool DestroyStream (StreamT &_stream, bool _bFlush=true)
 Destroy a previously created stream.
 
virtual void ClearStreams (bool _bFlush=true)
 
virtual void Flush ()
 Force logger to flush all streams.
 
virtual void EnableLogLevel (LogLevel _level)
 Enable LogLevel for all registered streams.
 
virtual void DisableLogLevel (LogLevel _level)
 Disable LogLevel for all registered streams.
 
virtual void EnableLogChannel (const std::wstring &_channel)
 Enable LogChannel for all registered streams.
 
virtual void DisableLogChannel (const std::wstring &_channel)
 Disable LogChannel for all registered streams.
 

Additional Inherited Members

- Protected Member Functions inherited from SA::LoggerBase
virtual void ProcessLog (const SA::Log &_log, bool _bForce=false)
 Process log to output.
 
virtual void RegisterStream (ALogStream *_stream)
 Register a stream to output.
 
virtual bool UnregisterStream (ALogStream *_stream)
 Unregister a stream from output.
 
- Protected Attributes inherited from SA::LoggerBase
std::list< ALogStream * > mStreams
 Registered output streams.
 

Detailed Description

Basic Logger class implementation.

Non-thread-safe logging.

Member Function Documentation

◆ GetFrameNum()

uint32_t SA::Logger::GetFrameNum ( ) const
finaloverridevirtual

Get current registered frame number.

Implements SA::LoggerBase.

◆ IncrementFrameNum()

void SA::Logger::IncrementFrameNum ( )
finaloverridevirtual

Increment current registered frame number.

Implements SA::LoggerBase.


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