1
0

LOG() API reads the LogLevel from the cCompositeChat's MessageType.

This commit is contained in:
madmaxoft
2014-04-01 09:32:14 +02:00
parent 58f2550321
commit 7aa6a3b866
6 changed files with 81 additions and 24 deletions

View File

@@ -93,25 +93,35 @@ void cMCLogger::InitLog(const AString & a_FileName)
void cMCLogger::LogSimple(const char* a_Text, int a_LogType /* = 0 */ )
void cMCLogger::LogSimple(const char * a_Text, eLogLevel a_LogLevel)
{
switch( a_LogType )
switch (a_LogLevel)
{
case 0:
case llRegular:
{
LOG("%s", a_Text);
break;
case 1:
}
case llInfo:
{
LOGINFO("%s", a_Text);
break;
case 2:
}
case llWarning:
{
LOGWARN("%s", a_Text);
break;
case 3:
}
case llError:
{
LOGERROR("%s", a_Text);
break;
}
default:
LOG("(#%d#: %s", a_LogType, a_Text);
{
LOG("(#%d#: %s", (int)a_LogLevel, a_Text);
break;
}
}
}