7 #ifndef __FWCORE_LOG_SPYLOGGER_HPP__ 8 #define __FWCORE_LOG_SPYLOGGER_HPP__ 14 #include "fwCore/BaseObject.hpp" 15 #include "fwCore/config.hpp" 42 FWCORE_API
void createBasicConfiguration();
44 FWCORE_API
void addStreamAppender(std::ostream &os = std::clog, LevelType level = SL_TRACE);
46 FWCORE_API
void addFileAppender(
const std::string & logFile =
"SLM.log", LevelType level = SL_TRACE);
50 FWCORE_API
void setLevel(LevelType level);
52 FWCORE_API
void trace(
const std::string & mes,
const char * file = 0,
int line = -1);
54 FWCORE_API
void debug(
const std::string & mes,
const char * file = 0,
int line = -1);
56 FWCORE_API
void info(
const std::string & mes,
const char * file = 0,
int line = -1);
58 FWCORE_API
void warn(
const std::string & mes,
const char * file = 0,
int line = -1);
60 FWCORE_API
void error(
const std::string & mes,
const char * file = 0,
int line = -1);
62 FWCORE_API
void fatal(
const std::string & mes,
const char * file = 0,
int line = -1);
64 FWCORE_API
void log(
const std::string & mes,
const char * file = 0,
int line = -1);
76 FWCORE_API
static SpyLogger s_spyLogger;
83 #endif // __FWCORE_LOG_SPYLOGGER_HPP__ Base class for all FW4SPL's classes.
This namespace fwCore provides common foundations for FW4SPL.
Implements the SpyLogger.