Mod aaa-12 修改换行为LR

RCA:
SOL:
修改人:huangxin
检视人:huangxin
This commit is contained in:
huangxin 2019-11-26 15:36:47 +08:00
parent 1da2dc8c7f
commit 3f42a354d1
1 changed files with 14 additions and 6 deletions

View File

@ -230,6 +230,11 @@ void IHW_EnableLogLevel(unsigned int level, int iEnable)
}
}
static void __runLogService(void)
{
pthread_create(&g_logThreadId, NULL, __logOutputThread, NULL);
}
/**
* @brief
* @param pLogTag
@ -282,12 +287,7 @@ void IHW_InitLOG(const char *pLogTag, const char *pPath, int bEnable)
g_bEnableLog = bEnable;
IHW_RunLogService();
}
void IHW_RunLogService(void)
{
pthread_create(&g_logThreadId, NULL, __logOutputThread, NULL);
__runLogService();
}
static void __logTo(unsigned int level, int isAddTag, char *pMsg, int isPrint)
@ -381,6 +381,9 @@ void IHW_LOG(unsigned int level, const char *pMsg, ...)
utstring_free(pLogContent);
}
/**
* @brief
*/
void IHW_WaitFinishLogout(void)
{
PLOG_ITEM pItem = NULL;
@ -399,6 +402,11 @@ void IHW_WaitFinishLogout(void)
} while(!g_bEnableLog);
}
/**
* @brief
* @param lv
* @return
*/
const char *LogLeveToString(unsigned int lv)
{
switch(lv) {