• 首页
  • Qt文档
  • DTK文档
  • 玲珑文档
  • dlogmanager_zh

    Class::DLogManager

    暂无该属性


    Detailed Description

    DLogManager is the deepin user application log manager

    DLogManager::registerConsoleAppender

    [public plain static ]

    void registerConsoleAppender() See also registerFileAppender

    DLogManager::registerFileAppender

    [public plain static ]

    void registerFileAppender() See also getlogFilePath registerConsoleAppender

    DLogManager::getlogFilePath

    [public plain static ]

    QString getlogFilePath() ~chinese

    获取日志文件路径 ~chinese

    默认日志路径是 ~/.cache/organizationName/applicationName.log ~chinese

    如果获取 HOME 环境变量失败将不写日志 See also registerFileAppender

    DLogManager::setlogFilePath

    [public plain static ]

    void setlogFilePath(const QString &logFilePath) ~chinese

    设置日志文件路径 ~chinese logFilePath 日志文件路径 ~chinese

    如果设置的文件路进不是文件路径将什么都不做,输出一条警告

    DLogManager::setLogFormat

    [public plain static ]

    void setLogFormat(const QString &format)

    DLogManager::initConsoleAppender

    [private plain  ]

    void initConsoleAppender()

    DLogManager::initRollingFileAppender

    [private plain  ]

    void initRollingFileAppender()

    DLogManager::joinPath

    [private plain  ]

    QString joinPath(const QString &path, const QString &fileName)

    DLogManager::instance

    [private plain static ]

    DLogManager * instance()

    DLogManager::DLogManager

    [private constructor  ]

    DLogManager()

    DLogManager::~DLogManager

    [private destructor  ]

    ~DLogManager()

    DLogManager::DLogManager

    [private constructor  ]

    DLogManager(const DLogManager &)

    DLogManager::operator=

    [private copy-assign  ]

    DLogManager & operator=(const DLogManager &)