Skip to content

Commit 4dc48e5

Browse files
committed
added:configure log level support
1 parent ba655e8 commit 4dc48e5

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

XEngine_Source/XEngine_ServiceApp/XEngine_StreamMediaApp/XEngine_Configure.cpp

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,22 @@ bool XEngine_Configure_Parament(int argc, char** argv)
4545
{
4646
bIsTest = true;
4747
}
48+
else if (0 == _tcsxcmp("-l", argv[i]))
49+
{
50+
LPCXSTR lpszLogLevel = argv[++i];
51+
if (0 == _tcsxcmp("debug", lpszLogLevel))
52+
{
53+
st_ServiceConfig.st_XLog.nLogLeave = XENGINE_HELPCOMPONENTS_XLOG_IN_LOGLEVEL_DETAIL;
54+
}
55+
else if (0 == _tcsxcmp("detail", lpszLogLevel))
56+
{
57+
st_ServiceConfig.st_XLog.nLogLeave = XENGINE_HELPCOMPONENTS_XLOG_IN_LOGLEVEL_DETAIL;
58+
}
59+
else if (0 == _tcsxcmp("info", lpszLogLevel))
60+
{
61+
st_ServiceConfig.st_XLog.nLogLeave = XENGINE_HELPCOMPONENTS_XLOG_IN_LOGLEVEL_INFO;
62+
}
63+
}
4864
}
4965

5066
return true;

0 commit comments

Comments
 (0)