|
dl
|
日志系统 更多...
#include <dl_log.h>
类 | |
| struct | Setting |
Public 类型 | |
| enum class | Level { DAMAGE , ERR , WARN , NOTICE , MSG , INFO , TEST , PAUSE } |
| 日志等级 越小越严重 更多... | |
Public 成员函数 | |
| LogSystem () | |
| const Setting & | GetSetting () |
| 返回当前设置 | |
| void | SetLogFile (std::string_view path, std::string_view name={}, bool clear=true) |
| 设置日志文件路径(非线程安全) | |
| std::string | GetLogFile () |
| bool | IsLevelLimit (Level level) |
| bool | IsLevelMsgBox (Level level) |
| 检查等级是否可以弹窗(小于等于自己) | |
| void | SetLevelMsgBox (Level level) |
| 设置弹窗等级(小于等于自己才弹,越小越严重) | |
| std::mutex & | GetMutex () |
静态 Public 成员函数 | |
| static std::string_view | Level2String (Level level) |
| 日志等级转字符串 | |
友元 | |
| class | LogLimit |
| class | LogStackTrack |
| class | LogLevelSet |
|
strong |
| dl::LogSystem::LogSystem | ( | ) |
|
inlinestatic |
|
inline |
| void dl::LogSystem::SetLogFile | ( | std::string_view | path, |
| std::string_view | name = {}, | ||
| bool | clear = true ) |
设置日志文件路径(非线程安全)
| [in] | path | 日志文件夹(为空时不生成) |
| [in] | name | 日志名(为空时自动取名) |
| [in] | clear | 清空文件内容 |
|
friend |
|
friend |