File logger prefixes are 4 chars wide.
This commit is contained in:
parent
5921f78e52
commit
36e918ce9b
@ -290,7 +290,7 @@ 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:
|
||||
@ -300,21 +300,21 @@ void cFileListener::Log(AString a_Message, cLogger::eLogLevel a_LogLevel)
|
||||
}
|
||||
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());
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user