Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
fc::logging_config Struct Reference

#include <logger_config.hpp>

Static Public Member Functions

static logging_config default_config ()
 

Public Attributes

std::vector< stringincludes
 
std::vector< appender_configappenders
 
std::vector< logger_configloggers
 

Detailed Description

Definition at line 38 of file logger_config.hpp.

Member Function Documentation

◆ default_config()

logging_config fc::logging_config::default_config ( )
static

Definition at line 105 of file logger_config.cpp.

105 {
106 //slog( "default cfg" );
107 logging_config cfg;
108
109 variants c;
110 c.push_back( mutable_variant_object( "level","debug")("color", "green") );
111 c.push_back( mutable_variant_object( "level","warn")("color", "brown") );
112 c.push_back( mutable_variant_object( "level","error")("color", "red") );
113
114 cfg.appenders.push_back(
115 appender_config( "stderr", "console",
116 mutable_variant_object()
117 ( "stream","std_error")
118 ( "level_colors", c )
119 ) );
120 cfg.appenders.push_back(
121 appender_config( "stdout", "console",
122 mutable_variant_object()
123 ( "stream","std_out")
124 ( "level_colors", c )
125 ) );
126
127 logger_config dlc;
128 dlc.name = DEFAULT_LOGGER;
129 dlc.level = log_level::info;
130 dlc.appenders.push_back("stderr");
131 cfg.loggers.push_back( dlc );
132 return cfg;
133 }
#define DEFAULT_LOGGER
Definition logger.hpp:7
std::vector< fc::variant > variants
Definition variant.hpp:173
Here is the caller graph for this function:

Member Data Documentation

◆ appenders

std::vector<appender_config> fc::logging_config::appenders

Definition at line 41 of file logger_config.hpp.

◆ includes

std::vector<string> fc::logging_config::includes

Definition at line 40 of file logger_config.hpp.

◆ loggers

std::vector<logger_config> fc::logging_config::loggers

Definition at line 42 of file logger_config.hpp.


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