Skip to main content

Deinit

Init

函数功能

初始化Log。

函数原型

static APP_ERROR Log::Init();

返回参数说明

数据结构说明
APP_ERROR程序执行返回的错误码,请参考APP_ERROR说明

父主题: Log

InitWithoutCfg

函数功能

初始化Log时,不读取配置文件。

函数原型

static APP_ERROR Log::InitWithoutCfg();

返回参数说明

数据结构说明
APP_ERROR程序执行返回的错误码,请参考APP_ERROR说明

父主题: Log

Deinit

函数功能

对已初始化的Log进行去初始化处理。

函数原型

static APP_ERROR Log::Deinit();

返回参数说明

数据结构说明
APP_ERROR程序执行返回的错误码,请参考APP_ERROR说明

父主题: Log

Debug

函数功能

输出调试类信息。

函数原型

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

参数说明

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

父主题: Log

Info

函数功能

输出消息类信息。

函数原型

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

参数说明

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

父主题: Log

Warn

函数功能

输出警告类信息。

函数原型

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

参数说明

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

父主题: Log

在线提单