Jpp  pmt_effective_area_update
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
log.cc
Go to the documentation of this file.
1 #include "log.hh"
2 
3 /**
4  * \author cpellegrino
5  */
6 
7 /**
8  Logger without Jpp
9 */
10 
11 #include <iostream>
12 
14 {
15  if (m_level == cError) {
16  std::cerr << m_stream.str() << '\n';
17  } else if (m_level == cNotice) {
18  std::clog << m_stream.str() << '\n';
19  } else {
20  std::cout << m_stream.str() << '\n';
21  }
22 }
LogLevel m_level
Definition: log.hh:21
std::ostringstream m_stream
Definition: log.hh:19
~Logger()
Logger without Jpp.
Definition: jlog.cc:50