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

#include <console_appender.hpp>

Inheritance diagram for fc::console_appender:
fc::appender

Classes

struct  color
 
struct  config
 
class  impl
 
struct  level_color
 
struct  stream
 

Public Member Functions

 console_appender (const variant &args)
 
 console_appender (const config &cfg)
 
 console_appender ()
 
 ~console_appender ()
 
virtual void log (const log_message &m)
 
void print (const std::string &text_to_print, color::type text_color=color::console_default)
 
void configure (const config &cfg)
 
- Public Member Functions inherited from fc::appender
virtual ~appender ()=default
 

Additional Inherited Members

- Public Types inherited from fc::appender
typedef std::shared_ptr< appenderptr
 
- Static Public Member Functions inherited from fc::appender
template<typename T >
static bool register_appender (const std::string &type)
 
static appender::ptr create (const std::string &name, const std::string &type, const variant &args)
 
static appender::ptr get (const std::string &name)
 
static bool register_appender (const std::string &type, const appender_factory::ptr &f)
 

Detailed Description

Definition at line 8 of file console_appender.hpp.

Constructor & Destructor Documentation

◆ console_appender() [1/3]

fc::console_appender::console_appender ( const variant args)

Definition at line 30 of file console_appender.cpp.

◆ console_appender() [2/3]

fc::console_appender::console_appender ( const config cfg)

Definition at line 36 of file console_appender.cpp.

◆ console_appender() [3/3]

fc::console_appender::console_appender ( )

Definition at line 41 of file console_appender.cpp.

◆ ~console_appender()

fc::console_appender::~console_appender ( )

Definition at line 64 of file console_appender.cpp.

Member Function Documentation

◆ configure()

void fc::console_appender::configure ( const config cfg)

Definition at line 45 of file console_appender.cpp.

◆ log()

void fc::console_appender::log ( const log_message m)
virtual

Implements fc::appender.

Definition at line 90 of file console_appender.cpp.

◆ print()

void fc::console_appender::print ( const std::string &  text_to_print,
color::type  text_color = color::console_default 
)

Definition at line 128 of file console_appender.cpp.


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