Defines types and helper macros necessary for generating log messages.
#include <fc/time.hpp>
#include <fc/variant_object.hpp>
#include <memory>
Go to the source code of this file.
|
#define | __func__ __FUNCTION__ |
|
#define | FC_LOG_CONTEXT(LOG_LEVEL) |
| Automatically captures the File, Line, and Method names and passes them to the constructor of fc::log_context along with LOG_LEVEL.
|
|
#define | FC_LOG_MESSAGE(LOG_LEVEL, FORMAT, ...) |
| A helper method for generating log messages.
|
|
◆ __func__
#define __func__ __FUNCTION__ |
◆ FC_LOG_CONTEXT
#define FC_LOG_CONTEXT |
( |
| LOG_LEVEL | ) |
|
Value:
provides information about where and when a log message was generated.
- Parameters
-
LOG_LEVEL | - a valid log_level::Enum name. |
Definition at line 153 of file log_message.hpp.
153#define FC_LOG_CONTEXT(LOG_LEVEL) \
154 fc::log_context( fc::log_level::LOG_LEVEL, __FILE__, __LINE__, __func__ )
◆ FC_LOG_MESSAGE
#define FC_LOG_MESSAGE |
( |
| LOG_LEVEL, |
|
|
| FORMAT, |
|
|
| ... ) |
Value:
aggregates a message along with the context and associated meta-information.
An order-preserving dictionary of variants.
#define FC_LOG_CONTEXT(LOG_LEVEL)
Automatically captures the File, Line, and Method names and passes them to the constructor of fc::log...
- Parameters
-
LOG_LEVEL | a valid log_level::Enum name to be passed to the log_context |
FORMAT | A const char* string containing zero or more references to keys as "${key}" |
... | A set of key/value pairs denoted as ("key",val)("key2",val2)... |
Definition at line 165 of file log_message.hpp.
165#define FC_LOG_MESSAGE( LOG_LEVEL, FORMAT, ... ) \
166 fc::log_message( FC_LOG_CONTEXT(LOG_LEVEL), FORMAT, fc::mutable_variant_object()__VA_ARGS__ )
◆ FC_REFLECT_TYPENAME()