MeVisLab Toolbox Reference
SeverityChannelLogging.h File Reference
#include "SeverityChannelLoggingSystem.h"
#include <FMEThirdPartyWarningsDisable.h>
#include <string>
#include <boost/log/common.hpp>
#include <boost/log/expressions.hpp>
#include <boost/log/keywords/format.hpp>
#include <boost/log/keywords/filter.hpp>
#include <boost/log/keywords/severity.hpp>
#include <boost/log/keywords/channel.hpp>
#include <boost/log/utility/setup/console.hpp>
#include <boost/log/utility/setup/file.hpp>
#include <boost/log/utility/setup/common_attributes.hpp>
#include <boost/log/utility/setup/filter_parser.hpp>
#include <boost/log/utility/setup/formatter_parser.hpp>
#include <boost/log/utility/exception_handler.hpp>
#include <FMEThirdPartyWarningsRestore.h>

Go to the source code of this file.

Classes

class  scl::ScopedLog< LoggerType, level >
 

Namespaces

namespace  scl
 

Macros

#define LOG_WITH_SEVERITY   BOOST_LOG_SEV
 
#define LOG_DEBUG(logger)   LOG_WITH_SEVERITY(logger, ::scl::Debug)
 
#define LOG_INFO(logger)   LOG_WITH_SEVERITY(logger, ::scl::Info)
 
#define LOG_WARNING(logger)   LOG_WITH_SEVERITY(logger, ::scl::Warning)
 
#define LOG_ERROR(logger)   LOG_WITH_SEVERITY(logger, ::scl::Error)
 
#define LOG_CRITICAL(logger)   LOG_WITH_SEVERITY(logger, ::scl::Critical)
 

Typedefs

typedef boost::log::sources::severity_channel_logger< SeverityLevelscl::Logger
 
typedef boost::log::sources::severity_channel_logger_mt< SeverityLevelscl::ThreadSafeLogger
 
typedef boost::log::sinks::sink scl::Sink
 
typedef boost::shared_ptr< Sinkscl::SinkPtr
 

Enumerations

enum  scl::SeverityLevel {
  scl::Debug , scl::Info , scl::Warning , scl::Error ,
  scl::Critical
}
 

Functions

template<typename CharT , typename TraitsT >
std::basic_ostream< CharT, TraitsT > & scl::operator<< (std::basic_ostream< CharT, TraitsT > &stream, SeverityLevel level)
 
 scl::BOOST_LOG_ATTRIBUTE_KEYWORD (severity, "Severity", SeverityLevel)
 
 scl::BOOST_LOG_ATTRIBUTE_KEYWORD (channel, "Channel", std::string)
 
template<typename SinkType >
void scl::remove_log (boost::shared_ptr< SinkType > sink)
 
SEVERITYCHANNELLOGGING_EXPORT void scl::initialize ()
 

Macro Definition Documentation

◆ LOG_CRITICAL

#define LOG_CRITICAL ( logger)    LOG_WITH_SEVERITY(logger, ::scl::Critical)

Definition at line 94 of file SeverityChannelLogging.h.

◆ LOG_DEBUG

#define LOG_DEBUG ( logger)    LOG_WITH_SEVERITY(logger, ::scl::Debug)

Definition at line 90 of file SeverityChannelLogging.h.

◆ LOG_ERROR

#define LOG_ERROR ( logger)    LOG_WITH_SEVERITY(logger, ::scl::Error)

Definition at line 93 of file SeverityChannelLogging.h.

◆ LOG_INFO

#define LOG_INFO ( logger)    LOG_WITH_SEVERITY(logger, ::scl::Info)

Definition at line 91 of file SeverityChannelLogging.h.

◆ LOG_WARNING

#define LOG_WARNING ( logger)    LOG_WITH_SEVERITY(logger, ::scl::Warning)

Definition at line 92 of file SeverityChannelLogging.h.

◆ LOG_WITH_SEVERITY