Classes and functions for log message handling. More...
#include <fstream>
#include <iostream>
#include <string>
#include <time.h>
#include <boost/algorithm/string.hpp>
#include <boost/log/attributes/mutable_constant.hpp>
#include <boost/log/utility/manipulators/add_value.hpp>
#include <boost/log/attributes.hpp>
#include <boost/log/expressions.hpp>
#include <boost/log/expressions/formatters/date_time.hpp>
#include <boost/log/sinks.hpp>
#include <boost/log/sources/global_logger_storage.hpp>
#include <boost/log/sources/record_ostream.hpp>
#include <boost/log/sources/severity_logger.hpp>
#include <boost/filesystem.hpp>
#include <ql/shared_ptr.hpp>
#include <map>
#include <ql/qldefines.hpp>
#include <queue>
#include <unistd.h>
#include <iomanip>
#include <ored/utilities/osutils.hpp>
#include <ql/patterns/singleton.hpp>
#include <sstream>
#include <boost/any.hpp>
#include <boost/thread/shared_mutex.hpp>
#include <boost/thread/lock_types.hpp>
Go to the source code of this file.
Classes | |
class | Logger |
The Base Custom Log Handler class. More... | |
class | StderrLogger |
Stderr Logger. More... | |
class | FileLogger |
FileLogger. More... | |
class | BufferLogger |
BufferLogger. More... | |
class | IndependentLogger |
Base Log handler class that utilises Boost logging to create log sinks. More... | |
class | ProgressLogger |
class | StructuredLogger |
class | EventLogger |
EventLogger. More... | |
class | Log |
Global static Log class. More... | |
class | LoggerStream |
LoggerStream class that is a std::ostream replacement that will log each line. More... | |
class | JSONMessage |
class | StructuredMessage |
class | StructuredLoggingErrorMessage |
class | EventMessage |
class | ProgressMessage |
class | ConsoleLog |
Singleton to control console logging. More... | |
Namespaces | |
namespace | ore |
Serializable Credit Default Swap. | |
namespace | ore::data |
Macros | |
#define | ORE_ALERT 1 |
#define | ORE_CRITICAL 2 |
#define | ORE_ERROR 4 |
#define | ORE_WARNING 8 |
#define | ORE_NOTICE 16 |
#define | ORE_DEBUG 32 |
#define | ORE_DATA 64 |
#define | ORE_MEMORY 128 |
#define | MLOG(mask, text) |
#define | ALOG(text) MLOG(oreSeverity::alert, text); |
Logging Macro (Level = Alert) More... | |
#define | CLOG(text) MLOG(oreSeverity::critical, text) |
Logging Macro (Level = Critical) More... | |
#define | ELOG(text) MLOG(oreSeverity::error, text) |
Logging Macro (Level = Error) More... | |
#define | WLOG(text) MLOG(oreSeverity::warning, text) |
Logging Macro (Level = Warning) More... | |
#define | LOG(text) MLOG(oreSeverity::notice, text) |
Logging Macro (Level = Notice) More... | |
#define | DLOG(text) MLOG(oreSeverity::debug, text) |
Logging Macro (Level = Debug) More... | |
#define | TLOG(text) MLOG(oreSeverity::data, text) |
Logging Macro (Level = Data) More... | |
#define | MEM_LOG MEM_LOG_USING_LEVEL(oreSeverity::memory) |
Logging macro specifically for logging memory usage. More... | |
#define | MEM_LOG_USING_LEVEL(LEVEL) |
#define | CHECKED_LOGGERSTREAM(LEVEL, text) |
#define | ALOGGERSTREAM(text) CHECKED_LOGGERSTREAM(ORE_ALERT, text) |
#define | CLOGGERSTREAM(text) CHECKED_LOGGERSTREAM(ORE_CRITICAL, text) |
#define | ELOGGERSTREAM(text) CHECKED_LOGGERSTREAM(ORE_ERROR, text) |
#define | WLOGGERSTREAM(text) CHECKED_LOGGERSTREAM(ORE_WARNING, text) |
#define | LOGGERSTREAM(text) CHECKED_LOGGERSTREAM(ORE_NOTICE, text) |
#define | DLOGGERSTREAM(text) CHECKED_LOGGERSTREAM(ORE_DEBUG, text) |
#define | TLOGGERSTREAM(text) CHECKED_LOGGERSTREAM(ORE_DATA, text) |
#define | CONSOLEW(text) |
#define | CONSOLE(text) |
Typedefs | |
typedef boost::log::sinks::synchronous_sink< boost::log::sinks::text_file_backend > | file_sink |
typedef boost::log::sinks::synchronous_sink< boost::log::sinks::text_ostream_backend > | text_sink |
Enumerations | |
enum | oreSeverity { alert = 1 , critical = 2 , error = 4 , warning = 8 , notice = 16 , debug = 32 , data = 64 , memory = 128 } |
Functions | |
template<typename CharT , typename TraitsT > | |
std::basic_ostream< CharT, TraitsT > & | operator<< (std::basic_ostream< CharT, TraitsT > &strm, oreSeverity lvl) |
Outputs stringized representation of the severity level to the stream. More... | |
std::ostream & | operator<< (std::ostream &out, const StructuredMessage::Category &category) |
std::ostream & | operator<< (std::ostream &out, const StructuredMessage::Group &group) |
Classes and functions for log message handling.
Definition in file log.hpp.
#define MLOG | ( | mask, | |
text | |||
) |
Main Logging macro, do not use this directly, use on of the below 6 macros instead
#define ALOG | ( | text | ) | MLOG(oreSeverity::alert, text); |
#define CLOG | ( | text | ) | MLOG(oreSeverity::critical, text) |
#define ELOG | ( | text | ) | MLOG(oreSeverity::error, text) |
#define WLOG | ( | text | ) | MLOG(oreSeverity::warning, text) |
#define LOG | ( | text | ) | MLOG(oreSeverity::notice, text) |
#define DLOG | ( | text | ) | MLOG(oreSeverity::debug, text) |
#define TLOG | ( | text | ) | MLOG(oreSeverity::data, text) |
#define MEM_LOG MEM_LOG_USING_LEVEL(oreSeverity::memory) |
#define MEM_LOG_USING_LEVEL | ( | LEVEL | ) |
#define CHECKED_LOGGERSTREAM | ( | LEVEL, | |
text | |||
) |
#define ALOGGERSTREAM | ( | text | ) | CHECKED_LOGGERSTREAM(ORE_ALERT, text) |
#define CLOGGERSTREAM | ( | text | ) | CHECKED_LOGGERSTREAM(ORE_CRITICAL, text) |
#define ELOGGERSTREAM | ( | text | ) | CHECKED_LOGGERSTREAM(ORE_ERROR, text) |
#define WLOGGERSTREAM | ( | text | ) | CHECKED_LOGGERSTREAM(ORE_WARNING, text) |
#define LOGGERSTREAM | ( | text | ) | CHECKED_LOGGERSTREAM(ORE_NOTICE, text) |
#define DLOGGERSTREAM | ( | text | ) | CHECKED_LOGGERSTREAM(ORE_DEBUG, text) |
#define TLOGGERSTREAM | ( | text | ) | CHECKED_LOGGERSTREAM(ORE_DATA, text) |
#define CONSOLEW | ( | text | ) |
#define CONSOLE | ( | text | ) |
enum oreSeverity |
std::basic_ostream< CharT, TraitsT > & operator<< | ( | std::basic_ostream< CharT, TraitsT > & | strm, |
oreSeverity | lvl | ||
) |
Outputs stringized representation of the severity level to the stream.
Definition at line 1 of file log.hpp.