mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-17 00:07:41 +02:00
- console logger by default uses same format as previously (no extra data)
- a lot of changes in configs; - - update to creature format - abilities are now json structure - - multiple bugfixes revealed by validation - made schemas a bit more strict - creatures data can be replaced via mods - it is possible to validate vcmi configs using schemas (disabled)
This commit is contained in:
@ -266,9 +266,9 @@ CLogFormatter::CLogFormatter() : pattern("%m")
|
||||
|
||||
}
|
||||
|
||||
CLogFormatter::CLogFormatter(const std::string & pattern) : pattern(pattern)
|
||||
CLogFormatter::CLogFormatter(const std::string & pattern)
|
||||
{
|
||||
|
||||
setPattern(pattern);
|
||||
}
|
||||
|
||||
std::string CLogFormatter::format(const LogRecord & record) const
|
||||
@ -370,7 +370,10 @@ EConsoleTextColor::EConsoleTextColor CColorMapping::getColorFor(const CLoggerDom
|
||||
|
||||
CLogConsoleTarget::CLogConsoleTarget(CConsoleHandler * console) : console(console), threshold(ELogLevel::INFO), coloredOutputEnabled(true)
|
||||
{
|
||||
formatter.setPattern("%l %n [%t] - %m");
|
||||
// more verbose version:
|
||||
//formatter.setPattern("%l %n [%t] - %m");
|
||||
|
||||
formatter.setPattern("%m");
|
||||
}
|
||||
|
||||
void CLogConsoleTarget::write(const LogRecord & record)
|
||||
|
Reference in New Issue
Block a user