23 , m_minimumLogLevel(Notice)
25 , m_outputBufferWritten(0)
102 const char tmp[2] = { character, 0 };
Level m_minimumLogLevel
Minimum log level required to log.
virtual void terminate() const
Terminate the program immediately.
virtual ~Log()
Destructor.
char m_outputBuffer[LogBufferSize]
Output line is stored here until written using write()
void flush(const bool force=false)
Flush internal buffer.
Level getMinimumLogLevel()
Get the minimum logging level.
virtual void write(const char *str)=0
Write to the actual output device.
const char * m_ident
Identity.
Size m_outputBufferWritten
Number of characters written in the output buffer.
static const Size LogBufferSize
Size of the log buffer in bytes.
void setMinimumLogLevel(Level level)
Set the minimum logging level.
void setIdent(const char *ident)
Set log identity.
void append(const char *str)
Append to buffered output.
Level
Logging level values.
const char * getIdent() const
Retrieve log identify.
Singleton design pattern: only one instance is allowed.
Log & operator<<(Log &log, const char *str)