跳到主要内容

UpdateFileMode

LogRotateByTime

函数功能

记录一定时间内的数据。

函数原型

static void Log::LogRotateByTime(int rotateDay);

参数说明

参数名输入/输出说明
rotateDay输入设置记录文件时长。

父主题: Log

LogRotateByNumbers

函数功能

记录一定个数的数据。

函数原型

static void Log::LogRotateByNumbers(int fileNumbers);

参数说明

参数名输入/输出说明
fileNumbers输入设置记录文件数量,取值范围为大于0的整数。

父主题: Log

UpdateFileMode

函数功能

更新文件的模式。

函数原型

static void Log::UpdateFileMode();

父主题: Log

类说明

根据错误码获取错误信息。

父主题: ErrorCode

GetAppErrCodeInfo

函数功能

根据错误码获取对应错误信息。

函数原型

std::string GetAppErrCodeInfo(APP_ERROR err);

参数说明

参数名输入/输出说明
err输入错误码。

返回参数说明

数据结构说明
std::string错误码对应错误信息。

父主题: ErrorCode

GetError

函数功能

根据错误码获取对应错误信息,支持用户增加模块名称。

该接口后续将废弃,请使用GetErrorInfo接口获取对应错误信息。

函数原型

std::string GetError(APP_ERROR err, std::string moduleName = "");

参数说明

参数名输入/输出说明
err输入错误码。
moduleName输入错误所在模块名字。

返回参数说明

数据结构说明
std::string错误码对应错误信息。

父主题: ErrorCode

在线提单