Nevelex Corporation Nevelex Utilities 1.1.4 09/06/2003
Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

nevelex_util::Logger Class Reference

#include <Logger.h>

Inheritance diagram for nevelex_util::Logger:

Inheritance graph
[legend]
List of all members.

Public Types

enum  LOGGING_LEVELS {
  LOGGER_DEBUG, LOGGER_INFO, LOGGER_NOTICE, LOGGER_WARNING,
  LOGGER_ERROR, LOGGER_CRITICAL, LOGGER_ALERT, LOGGER_EMERGENCY
}

Public Methods

virtual ~Logger ()
virtual void log (LOGGING_LEVELS level, char *format,...)=0

Detailed Description

Interface used as an abstraction for generating log entries.
Author:
Michel Dalal


Member Enumeration Documentation

enum nevelex_util::Logger::LOGGING_LEVELS
 

Various logging levels taken from syslog (3) man page. Due to an MS VC++ issue, unable to use static const memeber variables in a case statement. (C2051)

Enumeration values:
LOGGER_DEBUG   debug-level message.
LOGGER_INFO   informational message.
LOGGER_NOTICE   normal, but significant, condition.
LOGGER_WARNING   warning conditions.
LOGGER_ERROR   error conditions.
LOGGER_CRITICAL   critical conditions.
LOGGER_ALERT   action must be taken immediately.
LOGGER_EMERGENCY   system is unusable.


Constructor & Destructor Documentation

nevelex_util::Logger::~Logger ( ) [virtual]
 

Default destructor. Does nothing.


Member Function Documentation

void nevelex_util::Logger::log ( LOGGING_LEVELS level,
char * format,
... ) [pure virtual]
 

Add a log entry

Parameters:
level   one of the enumeration values supplied in LOGGING_LEVELS enumeration.
format   a formatting string like that used by printf.
...   any arguments needed by the format string.

Reimplemented in nevelex_util::SyslogLogger.


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