写日志时默认只写日志,不输出到控制台
This commit is contained in:
parent
37354934cc
commit
aabaa8dbb5
|
@ -39,15 +39,15 @@ HGResult HGInfoImpl::Enable()
|
|||
strcat(cfgPath, "config.ini");
|
||||
|
||||
HGBool writeLog;
|
||||
HGBase_GetProfileInt(cfgPath, "Info", "writeLog", 1, &writeLog);
|
||||
HGBase_GetProfileInt(cfgPath, "info", "writeLog", 1, &writeLog);
|
||||
HGBool writeConsole;
|
||||
HGBase_GetProfileInt(cfgPath, "Info", "writeConsole", 1, &writeConsole);
|
||||
HGBase_GetProfileInt(cfgPath, "info", "writeConsole", 0, &writeConsole);
|
||||
HGUInt defType = HGBASE_INFOTYPE_FATAL | HGBASE_INFOTYPE_ERROR | HGBASE_INFOTYPE_WARNING
|
||||
| HGBASE_INFOTYPE_DESC | HGBASE_INFOTYPE_DEBUG;
|
||||
HGBase_GetProfileInt(cfgPath, "Info", "type", (HGInt)defType, (HGInt*)&m_type);
|
||||
HGBase_GetProfileInt(cfgPath, "Info", "showTime", 1, &m_showTime);
|
||||
HGBase_GetProfileInt(cfgPath, "Info", "showId", 0, &m_showId);
|
||||
HGBase_GetProfileInt(cfgPath, "Info", "showType", 1, &m_showType);
|
||||
HGBase_GetProfileInt(cfgPath, "info", "type", (HGInt)defType, (HGInt*)&m_type);
|
||||
HGBase_GetProfileInt(cfgPath, "info", "showTime", 1, &m_showTime);
|
||||
HGBase_GetProfileInt(cfgPath, "info", "showId", 0, &m_showId);
|
||||
HGBase_GetProfileInt(cfgPath, "info", "showType", 1, &m_showType);
|
||||
|
||||
if (writeLog)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue