FreeNOS
|
Log to standard output. More...
#include <StdioLog.h>
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 Log * | instance () |
Retrieve the instance. More... | |
Log to standard output.
Definition at line 34 of file StdioLog.h.
StdioLog::StdioLog | ( | ) |
Constructor.
Definition at line 27 of file StdioLog.cpp.
|
virtual |
Terminate the program using exit()
Reimplemented from Log.
Definition at line 41 of file StdioLog.cpp.
References exit(), EXIT_FAILURE, Panic, and PrivExec().
|
virtual |
Write to the standard output.
str | String to write |
Implements Log.
Definition at line 31 of file StdioLog.cpp.
References strlen().