solarpowerlog trunk
/home/tobi/workspace/solarpowerlog/src/configuration/ILogger.h File Reference
#include <string>
#include <ostream>
Include dependency graph for ILogger.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ILogger

Defines

#define LOGFATAL(logger, message)
#define LOGERROR(logger, message)
#define LOGWARN(logger, message)
#define LOGINFO(logger, message)
#define LOGDEBUG(logger, message)
#define LOGTRACE(logger, message)
#define LOGALL(logger, message)

Detailed Description

Created on: Jul 20, 2009 Author: tobi

Loggging Levels

Here some guideline to choose the right logging level to keep consistent throughout the program.

  • TRACE: Very verbatim (debug purpose) infos, like protocol, telegramms, low level data .... This level should be used to gather every information that might be needed to debug problems... Milestones during execution also counts to this. The goal is to find out whats happening if debugging some rare problems.
  • DEBUG: "Regular" Debug infos, like tracepoints, unusual program flow detection, etc. Detected problems that are likely a programming problem....
  • INFO: Verbatim information targeted to the user, showing details of the program flow, but not too much details. (showing when talking to a inverter, ...)
  • WARN: This level indicates a minor problems, caused by external events. Usually some functions might be temporary not available.
  • ERROR: The program cannot function under this circumstances. The feature imposed will not be available until the reason is fixed and the program restarted. The program can usually continue to execute, but with the limitations.
  • FATAL: The program detected a problem which makes it impossible to continue. The program will usually call abort() after FATAL.

Definition in file ILogger.h.


Define Documentation

#define LOGALL (   logger,
  message 
)

Definition at line 157 of file ILogger.h.

#define LOGDEBUG (   logger,
  message 
)

Definition at line 153 of file ILogger.h.

#define LOGERROR (   logger,
  message 
)
Value:
do { \
     cerr << message << endl;\
} while(0)

Definition at line 145 of file ILogger.h.

#define LOGFATAL (   logger,
  message 
)
Value:
do { \
     cerr << message << endl;\
} while(0)

Definition at line 141 of file ILogger.h.

#define LOGINFO (   logger,
  message 
)

Definition at line 151 of file ILogger.h.

#define LOGTRACE (   logger,
  message 
)

Definition at line 155 of file ILogger.h.

#define LOGWARN (   logger,
  message 
)

Definition at line 149 of file ILogger.h.