BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet software
Public Member Functions | List of all members
fc::log_context Class Reference

provides information about where and when a log message was generated. More...

#include <log_message.hpp>

Public Member Functions

 log_context ()
 
 log_context (log_level ll, const char *file, uint64_t line, const char *method)
 
 ~log_context ()
 
 log_context (const variant &v, uint32_t max_depth)
 
variant to_variant (uint32_t max_depth) const
 
std::string get_file () const
 
uint64_t get_line_number () const
 
std::string get_method () const
 
std::string get_thread_name () const
 
std::string get_task_name () const
 
std::string get_host_name () const
 
time_point get_timestamp () const
 
log_level get_log_level () const
 
std::string get_context () const
 
void append_context (const std::string &c)
 
std::string to_string () const
 

Detailed Description

provides information about where and when a log message was generated.

See also
FC_LOG_CONTEXT

Definition at line 56 of file log_message.hpp.

Constructor & Destructor Documentation

◆ log_context() [1/3]

fc::log_context::log_context ( )

Definition at line 44 of file log_message.cpp.

◆ log_context() [2/3]

fc::log_context::log_context ( log_level  ll,
const char *  file,
uint64_t  line,
const char *  method 
)

Definition at line 47 of file log_message.cpp.

◆ ~log_context()

fc::log_context::~log_context ( )

Definition at line 91 of file log_message.cpp.

◆ log_context() [3/3]

fc::log_context::log_context ( const variant v,
uint32_t  max_depth 
)
explicit

Definition at line 61 of file log_message.cpp.

Member Function Documentation

◆ append_context()

void fc::log_context::append_context ( const std::string &  c)

Definition at line 84 of file log_message.cpp.

◆ get_context()

string fc::log_context::get_context ( ) const

Definition at line 163 of file log_message.cpp.

◆ get_file()

string fc::log_context::get_file ( ) const

Definition at line 155 of file log_message.cpp.

◆ get_host_name()

string fc::log_context::get_host_name ( ) const

Definition at line 160 of file log_message.cpp.

◆ get_line_number()

uint64_t fc::log_context::get_line_number ( ) const

Definition at line 156 of file log_message.cpp.

◆ get_log_level()

log_level fc::log_context::get_log_level ( ) const

Definition at line 162 of file log_message.cpp.

◆ get_method()

string fc::log_context::get_method ( ) const

Definition at line 157 of file log_message.cpp.

◆ get_task_name()

string fc::log_context::get_task_name ( ) const

Definition at line 159 of file log_message.cpp.

◆ get_thread_name()

string fc::log_context::get_thread_name ( ) const

Definition at line 158 of file log_message.cpp.

◆ get_timestamp()

time_point fc::log_context::get_timestamp ( ) const

Definition at line 161 of file log_message.cpp.

◆ to_string()

std::string fc::log_context::to_string ( ) const

Definition at line 78 of file log_message.cpp.

◆ to_variant()

variant fc::log_context::to_variant ( uint32_t  max_depth) const

Definition at line 166 of file log_message.cpp.


The documentation for this class was generated from the following files: