veriblock-pop-cpp
C++11 Libraries for leveraging VeriBlock Proof-Of-Proof blockchain technology.
altintegration::Logger Struct Reference

An interface for logger. More...

Detailed Description

Implement it to enable logging in veriblock-pop-cpp.

Example:

using namespace altintegration;
// set MyLogger as main logger. Default is noop.
SetLogger<MyLogger>();
GetLogger().level = LogLevel::debug;
// see logs
Defines logging helpers.
Definition: block.hpp:14
Logger & GetLogger()
getter for global logger instance

Definition at line 48 of file logger.hpp.

#include <logger.hpp>

+ Collaboration diagram for altintegration::Logger:

Public Member Functions

virtual void log (LogLevel, const std::string &)
 

Public Attributes

LogLevel level = LogLevel::off
 

Member Function Documentation

◆ log()

virtual void altintegration::Logger::log ( LogLevel  ,
const std::string &   
)
inlinevirtual

Definition at line 51 of file logger.hpp.

51{}

Member Data Documentation

◆ level

LogLevel altintegration::Logger::level = LogLevel::off

Definition at line 53 of file logger.hpp.


The documentation for this struct was generated from the following file: