Jpp test-rotations-old
the software that should make you happy
Loading...
Searching...
No Matches
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}
std::ostringstream m_stream
Definition log.hh:19
~Logger()
Logger without Jpp.
Definition jlog.cc:50
LogLevel m_level
Definition log.hh:21
@ cError
Definition log.hh:15
@ cNotice
Definition log.hh:15