FreeNOS
Public Member Functions
KernelLog Class Reference

Log to the kernel using PrivExec(). More...

#include <KernelLog.h>

Inheritance diagram for KernelLog:
Log WeakSingleton< Log >

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 Loginstance ()
 Retrieve the instance. More...
 

Detailed Description

Log to the kernel using PrivExec().

Definition at line 34 of file KernelLog.h.

Constructor & Destructor Documentation

◆ KernelLog()

KernelLog::KernelLog ( )

Constructor.

Definition at line 21 of file KernelLog.cpp.

Member Function Documentation

◆ terminate()

void KernelLog::terminate ( ) const
virtual

Terminate the program using exit()

Reimplemented from Log.

Definition at line 31 of file KernelLog.cpp.

References KillPID, Panic, PrivExec(), ProcessCtl(), and SELF.

◆ write()

void KernelLog::write ( const char *  str)
virtual

Write using PrivExec()

Implements Log.

Definition at line 26 of file KernelLog.cpp.

References PrivExec(), and WriteConsole.


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