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
在线提单