DtkCore
DTK Core module
|
DLogManager is the deepin user application log manager. 更多...
静态 Public 成员函数 | |
static void | registerConsoleAppender () |
Registers the appender to write the log records to the Console. 更多... | |
static void | registerFileAppender () |
Registers the appender to write the log records to the file. 更多... | |
static QString | getlogFilePath () |
Return the path file log storage. 更多... | |
static void | setlogFilePath (const QString &logFilePath) |
setlogFilePath will change log file path of registerFileAppender logFilePath is the full path of file appender log 更多... | |
static void | setLogFormat (const QString &format) |
DLogManager is the deepin user application log manager.
\inmodule dtkcore
|
static |
Return the path file log storage.
DLogManager::getlogFilePath 获取日志文件路径
默认日志路径是 ~/.cache/organizationName/applicationName.log
如果获取 HOME 环境变量失败将不写日志
|
static |
Registers the appender to write the log records to the Console.
|
static |
Registers the appender to write the log records to the file.
|
static |
setlogFilePath will change log file path of registerFileAppender logFilePath is the full path of file appender log
DLogManager::setlogFilePath 设置日志文件路径 logFilePath 日志文件路径
如果设置的文件路进不是文件路径将什么都不做,输出一条警告