inline void Logger::debug(const std::string& fmt, const Any& value1)
{
log(Poco::format(fmt, value1), Message::PRIO_DEBUG);
}
inline void Logger::debug(const std::string& fmt, const Any& value1)
{
if (debug())
{
logAlways(Poco::format(fmt, value1), Message::PRIO_DEBUG);
}
}
// ...
inline void Logger::logAlways(const std::string& text, Message::Priority prio, const char* file, int line)
{
if (_pChannel)
{
_pChannel->log(Message(_name, text, prio, file, line));
}
}
Example:
should become: