跳到主要内容

Warn

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

Error

函数功能

输出错误类信息。

函数原型

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

参数说明

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

父主题: Log

Fatal

备注

须知

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

函数功能

输出致命类信息。

函数原型

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

参数说明

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

父主题: Log

在线提单