1 #ifndef GAUDISVC_ISSUELOGGER_H
2 #define GAUDISVC_ISSUELOGGER_H
41 : m_logger{ logger },
m_fun{ fun } {}
44 explicit operator bool ()
const {
return bool(m_logger); }
MsgStream & msg() const
shortcut for the method msgStream(MSG::INFO)
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
IssueSeverity::Level m_reportLevel
std::unique_ptr< StreamLogger > m_logger
StringProperty m_reportLevelS
MsgStream & err() const
shortcut for the method msgStream(MSG::ERROR)
void operator()(const std::string &s) const
const std::string & name() const
GAUDIPS_API Logger & logger()
Return the current logger instance.
void setupDefaultLogger()
const std::string & name() const override
Retrieve name of the service.
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)