1#ifndef FRAMEWORK_LOGGER_H
2#define FRAMEWORK_LOGGER_H
10#define BOOST_ALL_DYN_LINK 1
14#include <boost/log/core/record_view.hpp>
15#include <boost/log/sources/record_ostream.hpp>
16#include <boost/log/sources/severity_channel_logger.hpp>
17#include <boost/log/utility/formatting_ostream_fwd.hpp>
43namespace log = boost::log;
48typedef log::sources::severity_channel_logger_mt<level, std::string> logger;
62logger makeLogger(
const std::string& name);
105 static void set(
int n);
114 void operator()(
const log::record_view& view, log::formatting_ostream& os);
134#define enableLogging(name) \
135 mutable ::framework::logging::logger the_log_{ \
136 ::framework::logging::makeLogger(name)};
145#define ldmx_log(lvl) BOOST_LOG_SEV(the_log_, ::framework::logging::level::lvl)
Class encapsulating parameters for configuring a processor.
All classes in the ldmx-sw project use this namespace.