# MI - Fimex: MetNoFimex::Logger Class Reference

# MetNoFimex::Logger Class Reference

`#include <Logger.h>`

List of all members.

## Public Types

enum | LogLevel { OFF = 1000, FATAL = 900, ERROR = 800, WARN = 700, INFO = 600, DEBUG = 500 }

## Public Member Functions

| Logger (const std::string &className)
virtual | ~Logger ()
virtual bool | isEnabledFor (LogLevel level)
virtual void | forcedLog (LogLevel level, const std::string &message, const char *filename, unsigned int lineNumber)

## Detailed Description

Interface and default (dummy) implementation for a logger. Don't use this class directly, but retrieve a pointer to it via the getLogger function and log with the LOG4FIMEX macro.

## Member Enumeration Documentation

enum MetNoFimex::Logger::LogLevel

different log levels

Enumerator:

  OFF |
  FATAL |
  ERROR |
  WARN |
  INFO |
  DEBUG |

## Constructor & Destructor Documentation

MetNoFimex::Logger::Logger | ( | const std::string & | className | ) |

virtual MetNoFimex::Logger::~Logger | ( |  | ) | `[virtual]`

## Member Function Documentation

virtual bool MetNoFimex::Logger::isEnabledFor | ( | LogLevel | level | ) | `[virtual]`

check if the loglevel of this logger is active

virtual void MetNoFimex::Logger::forcedLog | ( | LogLevel | level,
|  | const std::string & | message,
|  | const char * | filename,
|  | unsigned int | lineNumber |
| ) |  |  | `[virtual]`

log (without checking) for this loglevel

Parameters:

  | level | log-level to log
  | message | log-message
  | filename | best retrieved with __FILE__
  | lineNumber | best retrieved with __LINE__

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

- include/fimex/Logger.h