Jpp  18.2.1-ARCA-DF-PATCH
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Attributes | List of all members
Log::Logger Class Reference

#include <log.hh>

Public Member Functions

 Logger (LogLevel level)
 
std::ostringstream & stream ()
 
 ~Logger ()
 Logger without Jpp. More...
 

Private Attributes

std::ostringstream m_stream
 
LogLevel m_level
 

Detailed Description

Definition at line 17 of file log.hh.

Constructor & Destructor Documentation

Log::Logger::Logger ( LogLevel  level)
inline

Definition at line 25 of file log.hh.

26  :
27  m_level(level)
28  {}
LogLevel m_level
Definition: log.hh:21
Log::Logger::~Logger ( )

Logger without Jpp.

Author
cpellegrino

Definition at line 50 of file jlog.cc.

51 {
52  if (m_level == cError) {
53  JLOGGER::JErrorStream(MLSing::get().logger()) << m_stream.str();
54  } else if (m_level == cWarning) {
55  JLOGGER::JWarningStream(MLSing::get().logger()) << m_stream.str();
56  } else if (m_level == cNotice) {
57  JLOGGER::JNoticeStream (MLSing::get().logger()) << m_stream.str();
58  } else if (m_level == cStatus) {
59  JLOGGER::JStatusStream (MLSing::get().logger()) << m_stream.str();
60  } else if (m_level == cDebug) {
61  JLOGGER::JDebugStream (MLSing::get().logger()) << m_stream.str();
62  }
63 }
LogLevel m_level
Definition: log.hh:21
std::ostringstream m_stream
Definition: log.hh:19
Level specific message streamers.
static MLSing & get()
Definition: jlog.cc:20

Member Function Documentation

std::ostringstream& Log::Logger::stream ( )
inline

Definition at line 30 of file log.hh.

31  {
32  return m_stream;
33  }
std::ostringstream m_stream
Definition: log.hh:19

Member Data Documentation

std::ostringstream Log::Logger::m_stream
private

Definition at line 19 of file log.hh.

LogLevel Log::Logger::m_level
private

Definition at line 21 of file log.hh.


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