Skip to content

Commit 7349139

Browse files
committed
improved:parameter command
1 parent 013a0da commit 7349139

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

XEngine_Source/XEngine_APPService/XEngine_AuthorizeService/Authorize_Config.cpp

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,30 @@ bool Authorize_Service_Parament(int argc, char** argv)
5757
{
5858
bIsTest = true;
5959
}
60+
else if (0 == _tcsxcmp("-lt", argv[i]))
61+
{
62+
st_AuthConfig.st_XLog.nLogType = _ttxoi(argv[++i]);
63+
}
64+
else if (0 == _tcsxcmp("-ll", argv[i]))
65+
{
66+
st_AuthConfig.st_XLog.nLogLeave = _ttxoi(argv[++i]);
67+
}
68+
else if (0 == _tcsxcmp("-l", argv[i]))
69+
{
70+
LPCXSTR lpszLogLevel = argv[++i];
71+
if (0 == _tcsxcmp("debug", lpszLogLevel))
72+
{
73+
st_AuthConfig.st_XLog.nLogLeave = XENGINE_HELPCOMPONENTS_XLOG_IN_LOGLEVEL_DEBUG;
74+
}
75+
else if (0 == _tcsxcmp("detail", lpszLogLevel))
76+
{
77+
st_AuthConfig.st_XLog.nLogLeave = XENGINE_HELPCOMPONENTS_XLOG_IN_LOGLEVEL_DETAIL;
78+
}
79+
else if (0 == _tcsxcmp("info", lpszLogLevel))
80+
{
81+
st_AuthConfig.st_XLog.nLogLeave = XENGINE_HELPCOMPONENTS_XLOG_IN_LOGLEVEL_INFO;
82+
}
83+
}
6084
}
6185

6286
return true;

0 commit comments

Comments
 (0)