summaryrefslogtreecommitdiffstats
path: root/source/MCLogger.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-08-10 13:03:05 +0200
committermadmaxoft <github@xoft.cz>2013-08-10 13:03:05 +0200
commit19781ecad53c37adc99c4f9b3044b2fb956071c5 (patch)
tree6ec28412c246807b10c3f3b6abf936088dac58a3 /source/MCLogger.cpp
parentAnother Linux compilation fix. (diff)
downloadcuberite-19781ecad53c37adc99c4f9b3044b2fb956071c5.tar
cuberite-19781ecad53c37adc99c4f9b3044b2fb956071c5.tar.gz
cuberite-19781ecad53c37adc99c4f9b3044b2fb956071c5.tar.bz2
cuberite-19781ecad53c37adc99c4f9b3044b2fb956071c5.tar.lz
cuberite-19781ecad53c37adc99c4f9b3044b2fb956071c5.tar.xz
cuberite-19781ecad53c37adc99c4f9b3044b2fb956071c5.tar.zst
cuberite-19781ecad53c37adc99c4f9b3044b2fb956071c5.zip
Diffstat (limited to '')
-rw-r--r--source/MCLogger.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/source/MCLogger.cpp b/source/MCLogger.cpp
index 80cbf7406..4442fc5b0 100644
--- a/source/MCLogger.cpp
+++ b/source/MCLogger.cpp
@@ -18,8 +18,6 @@ bool g_ShouldColorOutput = false;
WORD g_DefaultConsoleAttrib = 0x07;
#elif defined (__linux) && !defined(ANDROID_NDK)
#include <unistd.h> // Needed for isatty() on Linux
-
- bool g_ShouldColorOutput;
#endif
@@ -40,7 +38,7 @@ cMCLogger::cMCLogger(void)
AString FileName;
Printf(FileName, "LOG_%d.txt", (int)time(NULL));
m_Log = new cLog(FileName);
- m_Log->Log("--- Started Log ---");
+ m_Log->Log("--- Started Log ---\n");
s_MCLogger = this;
@@ -74,7 +72,7 @@ cMCLogger::cMCLogger(const AString & a_FileName)
cMCLogger::~cMCLogger()
{
- m_Log->Log("--- Stopped Log ---");
+ m_Log->Log("--- Stopped Log ---\n");
delete m_Log;
if (this == s_MCLogger)
s_MCLogger = NULL;
@@ -116,6 +114,7 @@ void cMCLogger::Log(const char * a_Format, va_list a_ArgList)
SetColor(csRegular);
m_Log->Log(a_Format, a_ArgList);
ResetColor();
+ puts("");
}
@@ -128,6 +127,7 @@ void cMCLogger::Info(const char * a_Format, va_list a_ArgList)
SetColor(csInfo);
m_Log->Log(a_Format, a_ArgList);
ResetColor();
+ puts("");
}
@@ -140,6 +140,7 @@ void cMCLogger::Warn(const char * a_Format, va_list a_ArgList)
SetColor(csWarning);
m_Log->Log(a_Format, a_ArgList);
ResetColor();
+ puts("");
}
@@ -152,6 +153,7 @@ void cMCLogger::Error(const char * a_Format, va_list a_ArgList)
SetColor(csError);
m_Log->Log(a_Format, a_ArgList);
ResetColor();
+ puts("");
}