OpenTREP Logo  0.6.0
C++ Open Travel Request Parsing Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
OPENTREP::Logger Class Reference

#include <opentrep/service/Logger.hpp>

Public Member Functions

template<typename T >
void log (const LOG::EN_LogLevel iLevel, const int iLineNumber, const std::string &iFileName, const T &iToBeLogged)
LOG::EN_LogLevel getLogLevel ()
std::ostream & getLogStream ()
void setLogParameters (const LOG::EN_LogLevel iLogLevel, std::ostream &ioLogStream)

Static Public Member Functions

static Loggerinstance ()


class FacSupervisor

Detailed Description

Class holding the stream for logs.
Note that the error logs are seen as standard output logs, but with a higher level of visibility.

Definition at line 45 of file Logger.hpp.

Member Function Documentation

template<typename T >
void OPENTREP::Logger::log ( const LOG::EN_LogLevel  iLevel,
const int  iLineNumber,
const std::string &  iFileName,
const T &  iToBeLogged 

Main log entry.

Definition at line 52 of file Logger.hpp.

LOG::EN_LogLevel OPENTREP::Logger::getLogLevel ( )

Get the log level.

Definition at line 37 of file Logger.cpp.

std::ostream & OPENTREP::Logger::getLogStream ( )

get the log stream.

Definition at line 42 of file Logger.cpp.

void OPENTREP::Logger::setLogParameters ( const LOG::EN_LogLevel  iLogLevel,
std::ostream &  ioLogStream 

Set the logger parameters (level and stream).

Definition at line 48 of file Logger.cpp.

Referenced by OPENTREP::logInit().

Logger & OPENTREP::Logger::instance ( )

Returns a current Logger instance.

Definition at line 55 of file Logger.cpp.


Referenced by OPENTREP::logInit().

Friends And Related Function Documentation

friend class FacSupervisor

Definition at line 47 of file Logger.hpp.

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