55 el::Configurations conf = *el::Loggers::defaultConfigurations();
57 conf.setGlobally(el::ConfigurationType::Enabled,
"true");
58 conf.setGlobally(el::ConfigurationType::Format,
"%datetime{%Y-%M-%d %H:%m:%s} %tick %level %msg");
59 conf.setGlobally(el::ConfigurationType::ToFile,
"false");
60 conf.setGlobally(el::ConfigurationType::ToStandardOutput,
"true");
61 conf.setGlobally(el::ConfigurationType::SubsecondPrecision,
"2");
62 conf.setGlobally(el::ConfigurationType::PerformanceTracking,
"false");
63 conf.setGlobally(el::ConfigurationType::MaxLogFileSize,
"2097152");
64 conf.setGlobally(el::ConfigurationType::LogFlushThreshold,
"0");
65 conf.set(el::Level::Verbose, el::ConfigurationType::Format,
"%datetime{%Y-%M-%d %H:%m:%s} %tick %msg");
67 el::Loggers::addFlag(el::LoggingFlag::DisableApplicationAbortOnFatalLog);
68 el::Loggers::addFlag(el::LoggingFlag::DisablePerformanceTrackingCheckpointComparison);
69 el::Loggers::addFlag(el::LoggingFlag::ColoredTerminalOutput);
70 el::Loggers::removeFlag(el::LoggingFlag::AllowVerboseIfModuleNotSpecified);
72 el::Loggers::setDefaultConfigurations(conf,
true);
101 el::Configurations conf = *el::Loggers::defaultConfigurations();
103 conf.set(el::Level::Trace, el::ConfigurationType::Enabled,
"false");
104 conf.set(el::Level::Debug, el::ConfigurationType::Enabled,
"false");
105 conf.set(el::Level::Info, el::ConfigurationType::Enabled,
"false");
106 conf.set(el::Level::Warning, el::ConfigurationType::Enabled,
"false");
107 conf.set(el::Level::Error, el::ConfigurationType::Enabled,
"false");
108 conf.set(el::Level::Fatal, el::ConfigurationType::Enabled,
"false");
112 conf.set(el::Level::Trace, el::ConfigurationType::Enabled,
"true");
115 conf.set(el::Level::Debug, el::ConfigurationType::Enabled,
"true");
118 conf.set(el::Level::Info, el::ConfigurationType::Enabled,
"true");
121 conf.set(el::Level::Warning, el::ConfigurationType::Enabled,
"true");
124 conf.set(el::Level::Error, el::ConfigurationType::Enabled,
"true");
127 conf.set(el::Level::Fatal, el::ConfigurationType::Enabled,
"true");
134 el::Loggers::setDefaultConfigurations(conf,
true);
144 el::Configurations conf = *el::Loggers::defaultConfigurations();
146 conf.setGlobally(el::ConfigurationType::Filename, logFile);
147 conf.setGlobally(el::ConfigurationType::ToFile,
"true");
149 el::Loggers::setDefaultConfigurations(conf,
true);