Skip to main content

SetLogParameters

Fatal

note

须知

在输出Fatal级别的日志后,会终止程序的运行,请谨慎使用。

函数功能

输出致命类信息。

函数原型

void Log::Fatal(const std::string& file, const std::string& function, const int& line, const std::string& msg);

参数说明

参数名输入/输出说明
file输入信息对应的文件。
function输入信息对应的函数。
line输入信息所在的行数。
msg输入信息内容。

父主题: Log

Flush

函数功能

清空显示的Log信息。

函数原型

void Log::Flush();

父主题: Log

SetLogParameters

函数功能

设置日志配置数据。

函数原型

static void Log::SetLogParameters(const ConfigData& configData);

参数说明

参数名输入/输出说明
configData输出配置数据。

父主题: Log

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

在线提单