1#ifndef FRAMEWORK_LOGGER_H
2#define FRAMEWORK_LOGGER_H
10#define BOOST_ALL_DYN_LINK 1
12#include <boost/log/core.hpp>
13#include <boost/log/expressions.hpp>
14#include <boost/log/sinks/sync_frontend.hpp>
15#include <boost/log/sinks/text_ostream_backend.hpp>
16#include <boost/log/sources/global_logger_storage.hpp>
17#include <boost/log/sources/severity_channel_logger.hpp>
18#include <boost/log/sources/severity_feature.hpp>
19#include <boost/log/utility/setup/common_attributes.hpp>
22#include <boost/log/sources/record_ostream.hpp>
23#include <boost/log/utility/setup/file.hpp>
25#include "Framework/Configure/Parameters.h"
45namespace log = boost::log;
46namespace sinks = boost::log::sinks;
51typedef log::sources::severity_channel_logger_mt<level, std::string> logger;
65logger makeLogger(
const std::string& name);
108 static void set(
int n);
117 void operator()(
const log::record_view& view, log::formatting_ostream& os);
137#define enableLogging(name) \
138 mutable ::framework::logging::logger theLog_{ \
139 ::framework::logging::makeLogger(name)};
147#define ldmx_log(lvl) BOOST_LOG_SEV(theLog_, ::framework::logging::level::lvl)
Class encapsulating parameters for configuring a processor.
All classes in the ldmx-sw project use this namespace.