1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Fixed CID 1197474, CID 1366358

This commit is contained in:
AlexVinS
2016-11-28 19:34:20 +03:00
parent 394d6e0677
commit 36598d8695
5 changed files with 17 additions and 1 deletions

View File

@@ -119,6 +119,18 @@ void CLogger::log(ELogLevel::ELogLevel level, const std::string & message) const
callTargets(LogRecord(domain, level, message));
}
void CLogger::log(ELogLevel::ELogLevel level, const boost::format & fmt) const
{
try
{
log(level, fmt.str());
}
catch(...)
{
log(ELogLevel::ERROR, "Invalid log format!");
}
}
ELogLevel::ELogLevel CLogger::getLevel() const
{
TLockGuard _(mx);