|
|
|
|
@ -38,7 +38,8 @@ private:
|
|
|
|
|
|
|
|
|
|
static void getTimeStamp(std::string & s);
|
|
|
|
|
|
|
|
|
|
template<typename... Args> static void formatLogMessage(std::string& output, LOG_SEVERITY severity, const std::string & f, Args... args)
|
|
|
|
|
template<typename... Args>
|
|
|
|
|
static void formatLogMessage(std::string& output, LOG_SEVERITY severity, const std::string & f, Args... args)
|
|
|
|
|
{
|
|
|
|
|
assert(severity != LOG_NONE);
|
|
|
|
|
|
|
|
|
|
@ -82,6 +83,11 @@ public:
|
|
|
|
|
static void addTarget(CLogTarget * target);
|
|
|
|
|
static void finalise();
|
|
|
|
|
|
|
|
|
|
template<typename... Args> static void logTrace(const std::string & f, Args... args)
|
|
|
|
|
{
|
|
|
|
|
log(LOG_TRACE, f, args...);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
template<typename... Args> static void logDebug(const std::string & f, Args... args)
|
|
|
|
|
{
|
|
|
|
|
log(LOG_DEBUG, f, args...);
|
|
|
|
|
|