Logo Search packages:      
Sourcecode: launchtool version File versions  Download package

Log::Logger Class Reference

#include <Logger.h>

List of all members.


Detailed Description

Singleton Logger class implementing the logging system.

Definition at line 105 of file Logger.h.


Public Member Functions

void crit (const char *tag, const char *func, const std::string &msg) throw ()
 Log a critical message.
void debug (const char *tag, const char *func, const std::string &msg) throw ()
 Log a debug message.
void err (const char *tag, const char *func, const std::string &msg) throw ()
 Log an error message.
void info (const char *tag, const char *func, const std::string &msg) throw ()
 Log an informational message.
void registerMethod (int id, Method *method=0) throw ()
 Register an output method in this logger.
void setFilter (const Filter &f) throw ()
 Set the filter for log messages.
void setupForkedChild () throw ()
void unusual (const char *tag, const char *func, const std::string &msg) throw ()
 Log an informational but unusual message.
void warn (const char *tag, const char *func, const std::string &msg) throw ()
 Log a warning message.

Static Public Member Functions

static Loggerinstance () throw ()
 Get the singleton logger instance.

Protected Member Functions

void log (LogLevel level, const char *tag, const char *func, const std::string &msg) throw ()

Protected Attributes

const Filterfilter
 Filter to be applied to log messages; if 0, all messages are logged.
Method * methods [max_method]
 Logging output objects ready to be used by this logger.

Static Protected Attributes

static Logger_instance = 0
 Singleton logger instance.
static const int max_method = 9
 Maximum number of supported methods.

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

Generated by  Doxygen 1.6.0   Back to index