summaryrefslogtreecommitdiff
path: root/client/Logger.h
diff options
context:
space:
mode:
Diffstat (limited to 'client/Logger.h')
-rw-r--r--client/Logger.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/client/Logger.h b/client/Logger.h
index c5cf70f..cecd454 100644
--- a/client/Logger.h
+++ b/client/Logger.h
@@ -23,15 +23,15 @@ class Logger
public:
static LogLevelType LogLevel;
- static void Trace(char* msgfmt, ...);
- static void Debug(char* msgfmt, ...);
- static void Info(char* msgfmt, ...);
- static void Warn(char* msgfmt, ...);
- static void Error(char* msgfmt, ...);
- static void Fatal(char* msgfmt, ...);
- static void Log(LogLevelType logLevel, char* msgfmt, ...);
+ static void Trace(std::string msg, ...);
+ static void Debug(std::string msg, ...);
+ static void Info(std::string msg, ...);
+ static void Warn(std::string msg, ...);
+ static void Error(std::string msg, ...);
+ static void Fatal(std::string msg, ...);
+ static void Log(LogLevelType logLevel, std::string msg, ...);
private:
- static void Log(LogLevelType logLevel, char* msgfmt, va_list arsg);
+ static void Log(LogLevelType logLevel, std::string msg, va_list arsg);
};
#else
@@ -41,13 +41,13 @@ class Logger
public:
static LogLevelType LogLevel;
- static void Trace(char* msgfmt, ...) {}
- static void Debug(char* msgfmt, ...) {}
- static void Info(char* msgfmt, ...) {}
- static void Warn(char* msgfmt, ...) {}
- static void Error(char* msgfmt, ...) {}
- static void Fatal(char* msgfmt, ...) {}
- static void Log(LogLevelType logLevel, char* msgfmt, ...) {}
+ static void Trace(std::string msg, ...) {}
+ static void Debug(std::string msg, ...) {}
+ static void Info(std::string msg, ...) {}
+ static void Warn(std::string msg, ...) {}
+ static void Error(std::string msg, ...) {}
+ static void Fatal(std::string msg, ...) {}
+ static void Log(LogLevelType logLevel, std::string msg, ...) {}
};
#endif