16 class log_context_impl;
17 class log_message_impl;
43 operator int()
const {
return value; }
68 std::string get_file()
const;
69 uint64_t get_line_number()
const;
70 std::string get_method()
const;
71 std::string get_thread_name()
const;
72 std::string get_task_name()
const;
73 std::string get_host_name()
const;
76 std::string get_context()
const;
78 void append_context(
const std::string& c );
82 std::shared_ptr<detail::log_context_impl> my;
121 std::string get_message()
const;
124 std::string get_format()
const;
128 std::shared_ptr<detail::log_message_impl> my;
142 #define __func__ __FUNCTION__ 151 #define FC_LOG_CONTEXT(LOG_LEVEL) \ 152 fc::log_context( fc::log_level::LOG_LEVEL, (const char*)__FILE__, __LINE__, (const char*)__func__ ) 163 #define FC_LOG_MESSAGE( LOG_LEVEL, FORMAT, ... ) \ 164 fc::log_message( FC_LOG_CONTEXT(LOG_LEVEL), \ 166 fc::limited_mutable_variant_object( FC_MAX_LOG_OBJECT_DEPTH, true )__VA_ARGS__ )
An order-perserving dictionary of variant's.
values
Define's the various log levels for reporting.
FC_REFLECT_TYPENAME(fc::log_message)
void to_variant(const flat_set< T, A... > &var, variant &vo, uint32_t _max_depth)
provides information about where and when a log message was generated.
std::vector< log_message > log_messages
stores null, int64, uint64, double, bool, string, std::vector<variant>, and variant_object's.
void from_variant(const variant &var, flat_set< T, A... > &vo, uint32_t _max_depth)
std::string to_string(double)
aggregates a message along with the context and associated meta-information.
defines wrappers for boost::asio functions