SA_Logger
Sapphire's Suite's C++ Logger.
|
Basic Logger class implementation. More...
#include <Logger.hpp>
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. | |
Basic Logger class implementation.
Non-thread-safe logging.
|
finaloverridevirtual |
Get current registered frame number.
Implements SA::LoggerBase.
|
finaloverridevirtual |
Increment current registered frame number.
Implements SA::LoggerBase.