Public Member Functions
StdioLog Class Reference

Log to standard output. More...

#include <StdioLog.h>

Inheritance diagram for StdioLog:
Log WeakSingleton< Log >

Public Member Functions

 StdioLog ()
 Constructor. More...
virtual void write (const char *str)
 Write to the standard output. More...
virtual void terminate () const
 Terminate the program using exit() More...
- Public Member Functions inherited from Log
 Log ()
 Constructor. More...
virtual ~Log ()
 Destructor. More...
Level getMinimumLogLevel ()
 Get the minimum logging level. More...
void setMinimumLogLevel (Level level)
 Set the minimum logging level. More...
void append (const char *str)
 Append to buffered output. More...
void setIdent (const char *ident)
 Set log identity. More...
const char * getIdent () const
 Retrieve log identify. More...
- Public Member Functions inherited from WeakSingleton< Log >
 WeakSingleton (Log *obj)
 Constructor. More...

Additional Inherited Members

- Public Types inherited from Log
enum  Level {
  Emergency, Alert, Critical, Error,
  Warning, Notice, Info, Debug
 Logging level values. More...
- Static Public Member Functions inherited from WeakSingleton< Log >
static Loginstance ()
 Retrieve the instance. More...

Detailed Description

Log to standard output.

Definition at line 34 of file StdioLog.h.

Constructor & Destructor Documentation

◆ StdioLog()

StdioLog::StdioLog ( )


Definition at line 27 of file StdioLog.cpp.

Member Function Documentation

◆ terminate()

void StdioLog::terminate ( ) const

Terminate the program using exit()

Reimplemented from Log.

Definition at line 41 of file StdioLog.cpp.

References exit(), EXIT_FAILURE, Panic, and PrivExec().

◆ write()

void StdioLog::write ( const char *  str)

Write to the standard output.

strString to write

Implements Log.

Definition at line 31 of file StdioLog.cpp.

References strlen().

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