EZLog
载入中...
搜索中...
未找到
EZLog::Lib类 参考

日志库 更多...

#include <Logger.h>

静态 Public 成员函数

static bool Initialize (const QString &project="Project", const QString &prefix="log", const QString &dir="Logs/", bool multi_thread=true)
 日志库初始化。
 
static QString errmsg ()
 错误信息。当日志库初始化失败时用于获取错误信息。
 
static void Debug (const QString &msg)
 在日志中记录debug等级的信息。
 
static void Info (const QString &msg)
 在日志中记录info等级的信息。
 
static void Warn (const QString &msg)
 在日志中记录warn等级的信息。
 
static void Error (const QString &msg)
 在日志中记录error等级的信息。
 
static void Critical (const QString &msg)
 在日志中记录critical等级的信息。
 

详细描述

日志库

成员函数说明

◆ Critical()

static void EZLog::Lib::Critical ( const QString &  msg)
static

在日志中记录critical等级的信息。

参数
msg要记录的信息

◆ Debug()

static void EZLog::Lib::Debug ( const QString &  msg)
static

在日志中记录debug等级的信息。

参数
msg要记录的信息

◆ errmsg()

static QString EZLog::Lib::errmsg ( )
static

错误信息。当日志库初始化失败时用于获取错误信息。

返回
具体错误信息

◆ Error()

static void EZLog::Lib::Error ( const QString &  msg)
static

在日志中记录error等级的信息。

参数
msg要记录的信息

◆ Info()

static void EZLog::Lib::Info ( const QString &  msg)
static

在日志中记录info等级的信息。

参数
msg要记录的信息

◆ Initialize()

static bool EZLog::Lib::Initialize ( const QString &  project = "Project",
const QString &  prefix = "log",
const QString &  dir = "Logs/",
bool  multi_thread = true 
)
static

日志库初始化。

参数
project项目名
prefix文件前缀
dir日志存储位置
multi_thread是否开启多线程模式
返回
初始化是否成功

Initialize

◆ Warn()

static void EZLog::Lib::Warn ( const QString &  msg)
static

在日志中记录warn等级的信息。

参数
msg要记录的信息

该类的文档由以下文件生成: