Allow 5 params in Log, fix typo

issue-71
Vitaliy Filippov 2016-05-16 12:29:29 +03:00
parent 44d3ddf928
commit 1bd86307c6
2 changed files with 7 additions and 1 deletions

View File

@ -186,7 +186,7 @@ void Resource::FromRemoteFile( const Entry& remote )
// remote checksum unknown, assume the file is not changed in remote
else if ( remote.MD5().empty() )
{
Log( "file %1% has unknown checksum in remote. assuned in sync",
Log( "file %1% has unknown checksum in remote. assumed in sync",
Path(), log::verbose ) ;
m_state = sync ;
}

View File

@ -115,6 +115,12 @@ void Log(
LogBase::Inst()->Log( log::Fmt(fmt) % p1 % p2 % p3 % p4, s ) ;
}
template <typename P1, typename P2, typename P3, typename P4, typename P5>
void Log( const std::string& fmt, const P1& p1, const P2& p2, const P3& p3, const P4& p4, const P5& p5, log::Serverity s = log::info )
{
LogBase::Inst()->Log( log::Fmt(fmt) % p1 % p2 % p3 % p4 % p5, s ) ;
}
void Trace( const std::string& str ) ;
template <typename P1>