Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
detail Namespace Reference

Functions

fc::logging_configadd_deep_mind_logger (fc::logging_config &config)
 
void configure_logging (const bfs::path &config_path)
 

Function Documentation

◆ add_deep_mind_logger()

fc::logging_config & detail::add_deep_mind_logger ( fc::logging_config & config)

Definition at line 25 of file main.cpp.

25 {
26 config.appenders.push_back(
27 fc::appender_config( "deep-mind", "dmlog" )
28 );
29
31 dmlc.name = "deep-mind";
33 dmlc.enabled = true;
34 dmlc.appenders.push_back("deep-mind");
35
36 config.loggers.push_back( dmlc );
37
38 return config;
39}
std::vector< string > appenders
std::optional< log_level > level
if not set, then parents level is used.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ configure_logging()

void detail::configure_logging ( const bfs::path & config_path)

Definition at line 41 of file main.cpp.

42{
43 try {
44 try {
45 if( fc::exists( config_path ) ) {
46 fc::configure_logging( config_path );
47 } else {
49
51 }
52 } catch (...) {
53 elog("Error reloading logging.json");
54 throw;
55 }
56 } catch (const fc::exception& e) {
57 elog("${e}", ("e",e.to_detail_string()));
58 } catch (const boost::exception& e) {
59 elog("${e}", ("e",boost::diagnostic_information(e)));
60 } catch (const std::exception& e) {
61 elog("${e}", ("e",e.what()));
62 } catch (...) {
63 // empty
64 }
65}
Used to generate a useful error report when an exception is thrown.
Definition exception.hpp:58
std::string to_detail_string(log_level ll=log_level::all) const
#define elog(FORMAT,...)
Definition logger.hpp:130
fc::logging_config & add_deep_mind_logger(fc::logging_config &config)
Definition main.cpp:25
bool exists(const path &p)
void configure_logging(const fc::path &log_config)
static logging_config default_config()
Here is the call graph for this function:
Here is the caller graph for this function: