FreeNOS
|
Log to the kernel using PrivExec(). More...
#include <KernelLog.h>
Public Member Functions | |
KernelLog () | |
Constructor. More... | |
virtual void | write (const char *str) |
Write using PrivExec() 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 the kernel using PrivExec().
Definition at line 34 of file KernelLog.h.
KernelLog::KernelLog | ( | ) |
Constructor.
Definition at line 21 of file KernelLog.cpp.
|
virtual |
Terminate the program using exit()
Reimplemented from Log.
Definition at line 31 of file KernelLog.cpp.
References KillPID, Panic, PrivExec(), ProcessCtl(), and SELF.
|
virtual |
Write using PrivExec()
Implements Log.
Definition at line 26 of file KernelLog.cpp.
References PrivExec(), and WriteConsole.