1#ifndef DATAQUEUE_LOG_HH
2#define DATAQUEUE_LOG_HH
7#include <boost/thread/mutex.hpp>
60 void add(std::string
const& tag)
62 boost::mutex::scoped_lock lock(
m_mutex);
64 container_t::iterator
const it =
m_counters.find(tag);
75 boost::mutex::scoped_lock lock(
m_mutex);
79 void reset(std::string
const& tag)
81 boost::mutex::scoped_lock lock(
m_mutex);
83 container_t::iterator
const it =
m_counters.find(tag);
93 boost::mutex::scoped_lock lock(c.
m_mutex);
100 stream << it->first <<
": " << it->second <<
", ";
109#define LOG_DEBUG Log::Logger(Log::cDebug ).stream()
110#define LOG_WARNING Log::Logger(Log::cWarning).stream()
111#define LOG_ERROR Log::Logger(Log::cError ).stream()
112#define LOG_NOTICE Log::Logger(Log::cNotice ).stream()
113#define LOG_STATUS Log::Logger(Log::cDebug ).stream()
void add(std::string const &tag)
void reset(std::string const &tag)
Counter & operator=(Counter const &)
friend std::ostream & operator<<(std::ostream &stream, Counter const &c)
std::map< std::string, unsigned int > container_t
std::ostringstream m_stream
~Logger()
Logger without Jpp.
std::ostringstream & stream()