#include <ored/utilities/log.hpp>
Inheritance diagram for StructuredMessage:
Collaboration diagram for StructuredMessage:Public Types | |
| enum class | Category { Error , Warning , Unknown } |
| enum class | Group { Analytics , Configuration , Model , Curve , Trade , Fixing , Logging , ReferenceData , Unknown } |
Public Member Functions | |
| StructuredMessage (const Category &category, const Group &group, const std::string &message, const std::map< std::string, std::string > &subFields=std::map< std::string, std::string >()) | |
| StructuredMessage (const Category &category, const Group &group, const std::string &message, const std::pair< std::string, std::string > &subField=std::pair< std::string, std::string >()) | |
| virtual | ~StructuredMessage () |
| std::string | msg () const |
| return a std::string for the log file More... | |
| void | emitLog () const |
| generate Boost log record to pass to corresponding sinks More... | |
Static Public Attributes | |
| static constexpr const char * | name = "StructuredMessage" |
Protected Member Functions | |
| void | addSubFields (const std::map< std::string, std::string > &) |
| virtual void | emitLog () const =0 |
| generate Boost log record - this method is called by log() More... | |
Additional Inherited Members |
|
strong |
| StructuredMessage | ( | const Category & | category, |
| const Group & | group, | ||
| const std::string & | message, | ||
| const std::map< std::string, std::string > & | subFields = std::map<std::string, std::string>() |
||
| ) |
Definition at line 555 of file log.cpp.
Here is the call graph for this function:| StructuredMessage | ( | const Category & | category, |
| const Group & | group, | ||
| const std::string & | message, | ||
| const std::pair< std::string, std::string > & | subField = std::pair<std::string, std::string>() |
||
| ) |
Definition at line 686 of file log.hpp.
|
virtual |
|
virtual |
return a std::string for the log file
Implements JSONMessage.
Definition at line 695 of file log.hpp.
Here is the call graph for this function:
|
virtual |
generate Boost log record to pass to corresponding sinks
Implements JSONMessage.
Definition at line 576 of file log.cpp.
Here is the call graph for this function:
|
protected |
Definition at line 594 of file log.cpp.