summaryrefslogtreecommitdiffstats
path: root/common/log.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/log.cpp')
-rw-r--r--common/log.cpp18
1 files changed, 10 insertions, 8 deletions
diff --git a/common/log.cpp b/common/log.cpp
index ee28a3b..d2e5f47 100644
--- a/common/log.cpp
+++ b/common/log.cpp
@@ -142,17 +142,19 @@ Sink::Log::DebugLevel Sink::Log::debugOutputLevel()
142 return debugLevelFromName(qgetenv("SINKDEBUGLEVEL")); 142 return debugLevelFromName(qgetenv("SINKDEBUGLEVEL"));
143} 143}
144 144
145void Sink::Log::setFilter(const QByteArrayList &filter) 145void Sink::Log::setDebugOutputFilter(FilterType type, const QByteArrayList &filter)
146{ 146{
147 qputenv("SINKDEBUGFILTER", filter.join(',')); 147 switch (type) {
148} 148 case ApplicationName:
149 149 qputenv("SINKDEBUGFILTER", filter.join(','));
150void Sink::Log::setAreas(const QByteArrayList &filter) 150 break;
151{ 151 case Area:
152 qputenv("SINKDEBUGAREAS", filter.join(',')); 152 qputenv("SINKDEBUGAREAS", filter.join(','));
153 break;
154 }
153} 155}
154 156
155void Sink::Log::setDebugOutput(const QByteArrayList &output) 157void Sink::Log::setDebugOutputFields(const QByteArrayList &output)
156{ 158{
157 qputenv("SINKDEBUGOUTPUT", output.join(',')); 159 qputenv("SINKDEBUGOUTPUT", output.join(','));
158} 160}