Definition at line 42 of file gelf_appender.cpp.
◆ impl()
fc::gelf_appender::impl::impl |
( |
const variant & | c | ) |
|
|
inline |
Definition at line 49 of file gelf_appender.cpp.
50 {
51 mutable_variant_object mvo;
53
55 mvo.erase("endpoint");
56 cfg.
host = mvo[
"host"].as<std::string>();
57 mvo.erase("host");
59
60 for(auto&& field_name : config::reserved_field_names) {
63 ("field_name", field_name));
64 }
65 }
67 if (!std::regex_match(
field.key(), config::user_field_name_pattern)) {
68 FC_THROW_EXCEPTION(invalid_arg_exception,
"Field name '${field_name} must begin with an underscore and contain only letters, numbers, underscores, dashes, and dots.",
69 (
"field_name",
field.key()));
70 }
71 }
72 }
bool contains(const char *key) const
#define FC_THROW_EXCEPTION(EXCEPTION, FORMAT,...)
void from_variant(const fc::variant &v, sysio::chain::chain_id_type &cid)
variant_object user_fields
◆ ~impl()
fc::gelf_appender::impl::~impl |
( |
| ) |
|
|
inline |
◆ cfg
config fc::gelf_appender::impl::cfg |
◆ gelf_endpoint
std::optional<boost::asio::ip::udp::endpoint> fc::gelf_appender::impl::gelf_endpoint |
◆ gelf_socket
The documentation for this class was generated from the following file: