#include <orea/app/structuredanalyticserror.hpp>
|
| StructuredAnalyticsErrorMessage (const std::string &analyticType, const std::string &exceptionType, const std::string &exceptionWhat, const std::map< std::string, std::string > &subFields={}) |
|
| 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 |
|
void | emitLog () const |
|
virtual | ~JSONMessage () |
|
virtual std::string | msg () const=0 |
|
void | log () const |
|
const std::string | json () const |
|
void | set (const std::string &key, const boost::any &value) |
|
|
enum | Category |
|
enum | Group |
|
static constexpr const char * | name |
|
void | addSubFields (const std::map< std::string, std::string > &) |
|
virtual void | emitLog () const=0 |
|
static std::string | jsonify (const boost::any &) |
|
std::map< std::string, boost::any > | data_ |
|
◆ StructuredAnalyticsErrorMessage()
StructuredAnalyticsErrorMessage |
( |
const std::string & |
analyticType, |
|
|
const std::string & |
exceptionType, |
|
|
const std::string & |
exceptionWhat, |
|
|
const std::map< std::string, std::string > & |
subFields = {} |
|
) |
| |
Definition at line 33 of file structuredanalyticserror.hpp.
35 {})
37 Category::Error, Group::Analytics, exceptionWhat,
38 std::map<std::string, std::string>({{"exceptionType", exceptionType}, {"analyticType", analyticType}})) {
39
41 }
void addSubFields(const std::map< std::string, std::string > &)
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 >())