BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet software
Public Types | Public Member Functions | Static Public Member Functions | List of all members
fc::appender Class Referenceabstract

#include <appender.hpp>

Inheritance diagram for fc::appender:
fc::console_appender fc::file_appender fc::gelf_appender

Public Types

typedef std::shared_ptr< appenderptr

Public Member Functions

virtual ~appender ()=default
virtual void log (const log_message &m)=0

Static Public Member Functions

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 28 of file appender.hpp.

Member Typedef Documentation

◆ ptr

typedef std::shared_ptr<appender> fc::appender::ptr

Definition at line 30 of file appender.hpp.

Constructor & Destructor Documentation

◆ ~appender()

virtual fc::appender::~appender ( )

Member Function Documentation

◆ create()

appender::ptr fc::appender::create ( const std::string &  name,
const std::string &  type,
const variant args 

Definition at line 35 of file appender.cpp.

◆ get()

appender::ptr fc::appender::get ( const std::string &  name)

Definition at line 25 of file appender.cpp.

◆ log()

virtual void fc::appender::log ( const log_message m)
pure virtual

◆ register_appender() [1/2]

template<typename T >
static bool fc::appender::register_appender ( const std::string &  type)

Definition at line 33 of file appender.hpp.

◆ register_appender() [2/2]

bool fc::appender::register_appender ( const std::string &  type,
const appender_factory::ptr f 

Definition at line 30 of file appender.cpp.

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