util: Establish global logger object.

The object encapsulates logging configuration, and in a later commit,
set up routines will also be moved into the class.
This commit is contained in:
Jim Posen
2018-04-11 10:03:21 -07:00
parent 17266a1306
commit f55f4fcf05
6 changed files with 66 additions and 39 deletions

View File

@@ -66,7 +66,7 @@ bool SetupNetworking();
template<typename... Args>
bool error(const char* fmt, const Args&... args)
{
LogPrintStr("ERROR: " + tfm::format(fmt, args...) + "\n");
LogPrintf("ERROR: %s\n", tfm::format(fmt, args...));
return false;
}