| # Gaudi Framework, version v25r0 |

Home |  | Generated: Mon Feb 17 2014

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
Gaudi::PluginService::Details::Logger Class Reference

Simple logging class, just to provide a default implementation. More...

`#include <PluginServiceDetails.h>`

## Public Types
enum | Level { Debug =0, Info =1, Warning =2, Error =3 }

## Public Member Functions
| Logger (Level level=Warning)
virtual | ~Logger ()
Level | level () const
void | setLevel (Level level)
void | info (const std::string &msg)
void | debug (const std::string &msg)
void | warning (const std::string &msg)
void | error (const std::string &msg)

## Private Member Functions
virtual void | report (Level lvl, const std::string &msg)

## Private Attributes
Level | m_level

## Detailed Description

Simple logging class, just to provide a default implementation.

Definition at line 223 of file PluginServiceDetails.h.

## Member Enumeration Documentation

enum Gaudi::PluginService::Details::Logger::Level

Enumerator:

  Debug |
  Info |
  Warning |
  Error |

Definition at line 225 of file PluginServiceDetails.h.

{ Debug=0, Info=1, Warning=2, Error=3 };

## Constructor & Destructor Documentation

Gaudi::PluginService::Details::Logger::Logger | ( | Level | level = `Warning` | ) |
| inline

Definition at line 226 of file PluginServiceDetails.h.

: m_level(level) {}

virtual Gaudi::PluginService::Details::Logger::~Logger | ( |  | ) |
| inline virtual

Definition at line 227 of file PluginServiceDetails.h.

{}

## Member Function Documentation

void Gaudi::PluginService::Details::Logger::debug | ( | const std::string & | msg | ) |
| inline

Definition at line 231 of file PluginServiceDetails.h.

{ report(Debug, msg); }

void Gaudi::PluginService::Details::Logger::error | ( | const std::string & | msg | ) |
| inline

Definition at line 233 of file PluginServiceDetails.h.

{ report(Error, msg); }

void Gaudi::PluginService::Details::Logger::info | ( | const std::string & | msg | ) |
| inline

Definition at line 230 of file PluginServiceDetails.h.

{ report(Info, msg); }

Level Gaudi::PluginService::Details::Logger::level | ( |  | ) | const
| inline

Definition at line 228 of file PluginServiceDetails.h.

{ return m_level; }

void Gaudi::PluginService::Details::Logger::report | ( | Level | lvl,
|  | const std::string & | msg
| ) |  |
| private virtual

Definition at line 339 of file PluginService.cpp.

{
static const char* levels[] = {"DEBUG : ",
"INFO : ",
"WARNING: ",
"ERROR : "};
if (lvl >= level()) {
std::cerr << levels[lvl] << msg << std::endl;
}
}

void Gaudi::PluginService::Details::Logger::setLevel | ( | Level | level | ) |
| inline

Definition at line 229 of file PluginServiceDetails.h.

{ m_level = level; }

void Gaudi::PluginService::Details::Logger::warning | ( | const std::string & | msg | ) |
| inline

Definition at line 232 of file PluginServiceDetails.h.

{ report(Warning, msg); }

## Member Data Documentation

Level Gaudi::PluginService::Details::Logger::m_level
| private

Definition at line 236 of file PluginServiceDetails.h.

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

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v25r0/GaudiPluginService/Gaudi/Details/PluginServiceDetails.h
- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v25r0/GaudiPluginService/src/PluginService.cpp