Change-Id: Idd5347c629c17b472ca9d9ce8ae55d76dd8e5011
return QDir::toNativeSeparators(DLogManager::instance()->m_logPath);
}
+void DLogManager::setlogFilePath(const QString &logFilePath)
+{
+ DLogManager::instance()->m_logPath = logFilePath;
+}
+
void DLogManager::setLogFormat(const QString &format)
{
//m_format = "%{time}{yyyy-MM-dd, HH:mm:ss.zzz} [%{type:-7}] [%{file:-20} %{function:-35} %{line}] %{message}\n";
public:
static void registerConsoleAppender();
static void registerFileAppender();
+
static QString getlogFilePath();
- static void setLogFormat(const QString& format);
-Q_SIGNALS:
+ /*!
+ * \brief setlogFilePath will change log file path of registerFileAppender
+ * \param logFilePath is the full path of file appender log
+ */
+ static void setlogFilePath(const QString& logFilePath);
-public Q_SLOTS:
+ static void setLogFormat(const QString& format);
private:
QString m_format;