It is better to rely on the Logger state to know exactly where we're
logging. Indeed due to the the various ways to impact its state the
config alone might not now where we're logging.
Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
_logWindowActivated = activated;
}
+QString Logger::logFile() const
+{
+ return _logFile.fileName();
+}
+
void Logger::setLogFile(const QString &name)
{
QMutexLocker locker(&_mutex);
_logExpire = expire;
}
+QString Logger::logDir() const
+{
+ return _logDirectory;
+}
+
void Logger::setLogDir(const QString &dir)
{
_logDirectory = dir;
void postGuiMessage(const QString &title, const QString &message);
void setLogWindowActivated(bool activated);
+
+ QString logFile() const;
void setLogFile(const QString &name);
+
void setLogExpire(int expire);
+
+ QString logDir() const;
void setLogDir(const QString &dir);
+
void setLogFlush(bool flush);
bool logDebug() const { return _logDebug; }