1
0
mirror of https://github.com/vcmi/vcmi.git synced 2026-05-16 09:28:24 +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
+2 -1
View File
@@ -51,13 +51,14 @@ namespace vstd
virtual ~CLoggerBase(){};
virtual void log(ELogLevel::ELogLevel level, const std::string & message) const = 0;
virtual void log(ELogLevel::ELogLevel level, const boost::format & fmt) const = 0;
template<typename T, typename ... Args>
void log(ELogLevel::ELogLevel level, const std::string & format, T t, Args ... args) const
{
boost::format fmt(format);
makeFormat(fmt, t, args...);
log(level, fmt.str());
log(level, fmt);
}
/// Log methods for various log levels