125 if (appenderName.empty())
131 std::string options =
sConfigMgr->GetStringDefault(appenderName.c_str(),
"");
132 std::string name = appenderName.substr(7);
136 fprintf(stderr,
"Log::CreateLoggerFromConfig: Missing config option Logger.%s\n", name.c_str());
143 if (tokens.size() != 2)
145 fprintf(stderr,
"Log::CreateLoggerFromConfig: Wrong config option Logger.%s=%s\n", name.c_str(), options.c_str());
152 fprintf(stderr,
"Error while configuring Logger %s. Already defined\n", name.c_str());
159 fprintf(stderr,
"Log::CreateLoggerFromConfig: Wrong Log Level %u for logger %s\n", type, name.c_str());
166 logger.
Create(name, level);
169 std::istringstream ss(*iter);
181 fprintf(stderr,
"Error while configuring Appender %s in Logger %s. Appender does not exist", str.c_str(), name.c_str());
LoggerMap loggers
Definition: Log.h:108
void addAppender(uint8 type, Appender *)
Definition: Logger.cpp:38
#define sConfigMgr
Definition: Config.h:61
FMT_API int fprintf(std::FILE *f, CStringRef format, ArgList args)
LogLevel lowestLogLevel
Definition: Log.h:110
void Create(std::string const &name, LogLevel level)
Definition: Logger.cpp:22
Appender * GetAppenderByName(std::string const &name)
Definition: Log.cpp:61
StorageType::const_iterator const_iterator
Definition: Util.h:52
Definition: Appender.h:33
LogLevel
Definition: Appender.h:31
uint8_t uint8
Definition: g3dmath.h:164
Definition: Appender.h:39
uint8_t uint8
Definition: Define.h:152
std::string const & getName() const
Definition: Logger.cpp:28
Definition: Appender.h:88