summaryrefslogtreecommitdiff
path: root/client/Logger.h
diff options
context:
space:
mode:
authorAlex <b0ris@b0ris-satellite.localdomain>2011-11-03 16:21:29 +0200
committerAlex <b0ris@b0ris-satellite.localdomain>2011-11-03 16:21:29 +0200
commitda3277b21e4a947691df84eb35f675c6f06a4369 (patch)
tree4ff43488cc88247ba07e9114b63305469b822188 /client/Logger.h
parentc0c86b6cab64186e97285e1b5b1ef13062926d87 (diff)
Fix compiler warnings
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