47 #ifndef _MIRA_LOGGINGAUX_H_ 48 #define _MIRA_LOGGINGAUX_H_ 62 void logAuxLogger(
const std::exception& info,
63 LogRecord& record, std::ostringstream& os);
64 void logAuxLogger(
const IntSignal& info,
65 LogRecord& record, std::ostringstream& os);
68 class AuxLogger : boost::noncopyable
71 AuxLogger(
SeverityLevel level, T auxInfo) : mAuxInfo(auxInfo) {
72 mRecord.level = level;
78 logAuxLogger(mAuxInfo, mRecord, mStream);
82 std::ostringstream& stream() {
89 std::ostringstream mStream;
107 #define MIRA_LOG_EXCEPTION(level, ex) \ 108 if (level > MIRA_SEVERITY_MAX_LEVEL) {} \ 109 else if (level > MIRA_LOGGER.getSeverityLevel()) {} \ 110 else mira::Private::AuxLogger<const std::exception&>(level, ex).stream() 121 #define MIRA_LOG_SIGNAL(level, sig) \ 122 if (level > MIRA_SEVERITY_MAX_LEVEL) {} \ 123 else if (level > MIRA_LOGGER.getSeverityLevel()) {} \ 124 else mira::Private::AuxLogger<const IntSignal&>(level, sig).stream() specialize cv::DataType for our ImgPixel and inherit from cv::DataType<Vec>
Definition: IOService.h:67
SeverityLevel
Severity levels to graduate between different log outputs.
Definition: LoggingCore.h:72
Core class of the logging library.
Registration of signal handlers for several interrupt signals.
static Time now() static Time eternity()
Returns the current utc based time.
Definition: Time.h:481
#define MIRA_LOGGER
Macro for easier access to the logging core instance.
Definition: LoggingCore.h:417