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

Abstract log stream class. More...

#include <ALogStream.hpp>

Inheritance diagram for SA::ALogStream:
SA::ConsoleLogStream SA::FileLogStream

Public Member Functions

virtual ~ALogStream ()=default
 Default virtual destructor.
 
void ProcessLog (const Log &_log, bool _bForce=false)
 Process a log to output in stream.
 
virtual void Flush ()
 Force the stream to flush.
 
ALogStreamoperator<< (const Log &_log)
 Output log operator.
 

Public Attributes

LogChannelFilter channelFilter
 Channel filter used for log in stream.
 
uint8_t levelFlags = +LogLevel::Default
 Level filter used for log in stream.
 

Protected Member Functions

virtual void Output (const Log &_log)=0
 Output a log in stream.
 

Detailed Description

Abstract log stream class.

Member Function Documentation

◆ Flush()

virtual void SA::ALogStream::Flush ( )
virtual

Force the stream to flush.

Reimplemented in SA::ConsoleLogStream, and SA::FileLogStream.

◆ operator<<()

ALogStream & SA::ALogStream::operator<< ( const Log & _log)

Output log operator.

Parameters
[in]_logLog to output.
Returns
this.

◆ Output()

virtual void SA::ALogStream::Output ( const Log & _log)
protectedpure virtual

Output a log in stream.

Parameters
[in]_logLog to output.

Implemented in SA::FileLogStream.

◆ ProcessLog()

void SA::ALogStream::ProcessLog ( const Log & _log,
bool _bForce = false )

Process a log to output in stream.

Parameters
[in]_logLog to process.
[in]_bForceShould force log process. Default is false.

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