Skip to content

NET_SDK_SetLogToFile

Interface Definition

1
2
3
4
5
BOOL NET_SDK_SetLogToFile(
    BOOL bLogEnable = FALSE,
    char* strLogDir = NULL,
    BOOL bAutoDel = TRUE,
    int logLevel = YLOG_DEBUG);
1
2
3
4
5
public static extern bool NET_SDK_SetLogToFile(
    bool bLogEnable,
    string strLogDi,
    bool bAutoDel,
    int logLevel);

Function Description

SDK log configuration, closed by default.

Parameter Description

Parameters Type Remark
bLogEnablein BOOL Whether to enable console logging and output logs to local files. The default value is FALSE.
strLogDirin char* The local file save path.
bAutoDelin BOOL The automatic deletion function is currently deprecated and can be passed at random.
logLevelin int The level of output log, refer to YLOG_LEVEL.

Return Value

  • type:BOOL

  • remark:Returns TRUE if successful, FALSE if failed.

Remarks

None

Error Code