summaryrefslogtreecommitdiffstats
path: root/logger/QsLogDest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'logger/QsLogDest.cpp')
-rw-r--r--logger/QsLogDest.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/logger/QsLogDest.cpp b/logger/QsLogDest.cpp
index 2fd29b23..4a47060e 100644
--- a/logger/QsLogDest.cpp
+++ b/logger/QsLogDest.cpp
@@ -77,6 +77,15 @@ void DebugOutputDestination::write(const QString &message)
QsDebugOutput::output(message);
}
+class QDebugDestination : public Destination
+{
+public:
+ virtual void write(const QString &message)
+ {
+ qDebug() << message;
+ };
+};
+
DestinationPtr DestinationFactory::MakeFileDestination(const QString &filePath)
{
return DestinationPtr(new FileDestination(filePath));
@@ -87,4 +96,9 @@ DestinationPtr DestinationFactory::MakeDebugOutputDestination()
return DestinationPtr(new DebugOutputDestination);
}
+DestinationPtr DestinationFactory::MakeQDebugDestination()
+{
+ return DestinationPtr(new QDebugDestination);
+}
+
} // end namespace