summaryrefslogtreecommitdiffstats
path: root/logger/QsLogDest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'logger/QsLogDest.cpp')
-rw-r--r--logger/QsLogDest.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/logger/QsLogDest.cpp b/logger/QsLogDest.cpp
index 36297a14..2fd29b23 100644
--- a/logger/QsLogDest.cpp
+++ b/logger/QsLogDest.cpp
@@ -25,6 +25,7 @@
#include "QsLogDest.h"
#include "QsDebugOutput.h"
+#include "QsLog.h"
#include <QFile>
#include <QTextStream>
#include <QString>
@@ -32,6 +33,12 @@
namespace QsLogging
{
+Destination::~Destination()
+{
+ Logger::instance().removeDestination(this);
+ QsDebugOutput::output("Removed logger destination.");
+}
+
//! file message sink
class FileDestination : public Destination
{