Skip to content

Class zmbt::Logger

ClassList > zmbt > Logger

Public Types

Type Name
enum Level
enum Output

Public Functions

Type Name
Logger ()
Logger & WithLevel (Level const level)
Logger & WithOutput (Output const output)
Logger & WithSrcLoc (boost::json::string_view const src_loc)
Logger & operator<< (boost::json::value const & value)
~Logger ()

Public Static Functions

Type Name
Level get_max_level ()
bool get_notrim ()
void open_json (const std::string & filename="")
Attach logger to file sink ("" means stdout)
void set_max_level (Level const max_level)
void set_notrim (bool const trim_line)

Public Types Documentation

enum Level

enum zmbt::Logger::Level {
    FATAL,
    ERROR,
    WARNING,
    INFO,
    DEBUG,
    TRACE
};

enum Output

enum zmbt::Logger::Output {
    NIL = 0,
    STDERR = 1 << 0,
    JSON = 1 << 1
};

Public Functions Documentation

function Logger

zmbt::Logger::Logger () 

function WithLevel

Logger & zmbt::Logger::WithLevel (
    Level const level
) 

function WithOutput

Logger & zmbt::Logger::WithOutput (
    Output const output
) 

function WithSrcLoc

Logger & zmbt::Logger::WithSrcLoc (
    boost::json::string_view const src_loc
) 

function operator<<

Logger & zmbt::Logger::operator<< (
    boost::json::value const & value
) 

function ~Logger

zmbt::Logger::~Logger () 

Public Static Functions Documentation

function get_max_level

static Level zmbt::Logger::get_max_level () 

function get_notrim

static bool zmbt::Logger::get_notrim () 

function open_json

Attach logger to file sink ("" means stdout)

static void zmbt::Logger::open_json (
    const std::string & filename=""
) 


function set_max_level

static void zmbt::Logger::set_max_level (
    Level const max_level
) 

function set_notrim

static void zmbt::Logger::set_notrim (
    bool const trim_line
) 


The documentation for this class was generated from the following file zmbt-framework/zmbt-framework/backends/cxx/include/zmbt/logging.hpp