Scale Stack 0.3 Developer Documentation

scalestack::kernel::log Class Reference

#include <log.h>

Inheritance diagram for scalestack::kernel::log:
scalestack::kernel::log_console test_suite::log_test

Public Types

enum  level {
  LEVEL_FATAL, LEVEL_ERROR, LEVEL_NOTICE, LEVEL_INFO,
  LEVEL_DEBUG
}

Public Member Functions

 log (void)
virtual ~log ()
virtual void write_log (log::level log_level, const char *context, const char *message)=0

Static Public Member Functions

static const char * level_name (log::level log_level)

Private Member Functions

 log (const log &)
logoperator= (const log &)

Detailed Description

This is the base class for all kernel log implementations.

Definition at line 37 of file log.h.


Member Enumeration Documentation

Available log levels.

Enumerator:
LEVEL_FATAL 
LEVEL_ERROR 
LEVEL_NOTICE 
LEVEL_INFO 
LEVEL_DEBUG 

Definition at line 44 of file log.h.


Constructor & Destructor Documentation

scalestack::kernel::log::log ( void   )  [inline]

Definition at line 109 of file log.h.

scalestack::kernel::log::~log (  )  [inline, virtual]

Definition at line 113 of file log.h.

scalestack::kernel::log::log ( const log  )  [private]

Don't allow copying of objects.


Member Function Documentation

const char * scalestack::kernel::log::level_name ( log::level  log_level  )  [inline, static]

Get the string representation for a givel log level.

Definition at line 90 of file log.h.

virtual void scalestack::kernel::log::write_log ( log::level  log_level,
const char *  context,
const char *  message 
) [pure virtual]

Write a log entry, this must be supplied by derived classes.

Parameters:
[in] log_level Log level for this message.
[in] context Context string for this message.
[in] message Message to log.

Implemented in scalestack::kernel::log_console, and test_suite::log_test.

log& scalestack::kernel::log::operator= ( const log  )  [private]

Don't allow assignment of objects.


The documentation for this class was generated from the following file:
Generated on Thu Feb 17 13:10:22 2011 by  doxygen 1.6.3