summaryrefslogtreecommitdiff
path: root/client/Logger.cpp
diff options
context:
space:
mode:
authorAlex Borisov <b0ric.alex@gmail.com>2012-03-25 22:16:30 +0300
committerAlex Borisov <b0ric.alex@gmail.com>2012-03-25 22:16:30 +0300
commitec80c67bcfec64177910f39d31c4b20974629096 (patch)
tree7132d5c394e0e62d3d17a40ce7587d270f3706b6 /client/Logger.cpp
parentfc68a17bda76f7ffe8493bb8f9593631b9d05ba1 (diff)
Three color speed values
Diffstat (limited to 'client/Logger.cpp')
-rw-r--r--client/Logger.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/client/Logger.cpp b/client/Logger.cpp
index 63c4d8f..e0e769f 100644
--- a/client/Logger.cpp
+++ b/client/Logger.cpp
@@ -15,11 +15,13 @@ FILE* Logger::logFile = NULL;
void Logger::InitLogFile()
{
+ /*
if (logFile == NULL)
{
logFile = fopen("client.log", "a");
setbuf(logFile, NULL);
}
+ */
}
void Logger::Trace(string msg, ...)
@@ -109,10 +111,12 @@ void Logger::Log(LogLevelType logLevel, string msg, va_list args)
sprintf(newfmt, "[%s] %-6s: %s", time_str, log_level_str.c_str(), msg.c_str());
vsprintf(logstr, newfmt, args);
fprintf(stderr, logstr);
- if (logFile != NULL)
+ /*
+ if (logFile != NULL)
{
fprintf(logFile, logstr);
}
+ */
delete [] newfmt;
}