1 #ifndef GAUDISVC_ISSUELOGGER_H
2 #define GAUDISVC_ISSUELOGGER_H
4 #include "GaudiKernel/Service.h"
5 #include "GaudiKernel/IIssueLogger.h"
6 #include "GaudiKernel/IssueSeverity.h"
7 #include "GaudiKernel/Property.h"
24 const std::string& origin)
override;
40 : m_logger{ logger },
m_fun{ fun } {}
42 const std::string&
name()
const {
return m_logger->
name(); }
43 explicit operator bool ()
const {
return bool(m_logger); }
44 void reset() { m_logger.reset(); }
46 std::array<logger_t,IssueSeverity::NUM_LEVELS>
m_log;
StatusCode connect(const std::string &)
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
StatusCode finalize() override
~IssueLogger() override=default
StringArrayProperty m_outputfile
GAUDIPS_API Logger & logger()
Return the current logger instance.
IssueSeverity::Level m_reportLevel
std::unique_ptr< StreamLogger > m_logger
StringProperty m_reportLevelS
void operator()(const std::string &s) const
const std::string & name() const
void setupDefaultLogger()
This class is used for returning status codes from appropriate routines.
StatusCode reinitialize() override
std::array< logger_t, IssueSeverity::NUM_LEVELS > m_log
const std::string & name() const
Property base class allowing Property* collections to be "homogeneous".
Base class used to extend a class implementing other interfaces.
void setupStreams(Property &prop)
void setupLevels(Property &prop)
StatusCode initialize() override
double fun(const std::vector< double > &x)
logger_t(StreamLogger *logger, void(StreamLogger::*fun)(const std::string &))
void(StreamLogger::* m_fun)(const std::string &)
IssueSeverity::Level m_traceLevel
BooleanProperty m_showTime
StringProperty m_traceLevelS
void report(IssueSeverity::Level level, const std::string &msg, const std::string &origin) override
IssueLogger(const std::string &name, ISvcLocator *svc)