summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-08-13 13:31:19 +0200
committermadmaxoft <github@xoft.cz>2014-08-13 13:31:19 +0200
commit36e918ce9bd546efa25987027a73e0f1d8fa192d (patch)
tree7812896ed5830d557804b074c5ae8250291cd46f /src
parentLogger: Fixed windows debug ODS logger, fixed-size file prefixes. (diff)
downloadcuberite-36e918ce9bd546efa25987027a73e0f1d8fa192d.tar
cuberite-36e918ce9bd546efa25987027a73e0f1d8fa192d.tar.gz
cuberite-36e918ce9bd546efa25987027a73e0f1d8fa192d.tar.bz2
cuberite-36e918ce9bd546efa25987027a73e0f1d8fa192d.tar.lz
cuberite-36e918ce9bd546efa25987027a73e0f1d8fa192d.tar.xz
cuberite-36e918ce9bd546efa25987027a73e0f1d8fa192d.tar.zst
cuberite-36e918ce9bd546efa25987027a73e0f1d8fa192d.zip
Diffstat (limited to '')
-rw-r--r--src/LoggerListeners.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/LoggerListeners.cpp b/src/LoggerListeners.cpp
index b86ab4127..836536cbd 100644
--- a/src/LoggerListeners.cpp
+++ b/src/LoggerListeners.cpp
@@ -290,31 +290,31 @@ cFileListener::cFileListener(void)
void cFileListener::Log(AString a_Message, cLogger::eLogLevel a_LogLevel)
{
- const char * LogLevelPrefix = "U ";
+ const char * LogLevelPrefix = "Unkn ";
switch (a_LogLevel)
{
case cLogger::llRegular:
{
- LogLevelPrefix = " ";
+ LogLevelPrefix = " ";
break;
}
case cLogger::llInfo:
{
- LogLevelPrefix = "i ";
+ LogLevelPrefix = "info ";
break;
}
case cLogger::llWarning:
{
- LogLevelPrefix = "W ";
+ LogLevelPrefix = "Warn ";
break;
}
case cLogger::llError:
{
- LogLevelPrefix = "E ";
+ LogLevelPrefix = "Err ";
break;
}
}
- m_File.Printf("%s: %s", LogLevelPrefix, a_Message.c_str());
+ m_File.Printf("%s%s", LogLevelPrefix, a_Message.c_str());
}