summaryrefslogtreecommitdiffstats
path: root/common/log.h
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-02-05 12:35:39 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-02-05 12:35:39 +0100
commitc8fbb5710737087b0cb5679d6211252dcba4ccce (patch)
tree433329a59a505596500520491dc4ab3f7bc9b9b6 /common/log.h
parente1716e503d96d4c8331fb1dc2e701f2b6df240ec (diff)
downloadsink-c8fbb5710737087b0cb5679d6211252dcba4ccce.tar.gz
sink-c8fbb5710737087b0cb5679d6211252dcba4ccce.zip
Use a config file instead of environment variables for log settings.
qputenv only modifies the env of the current process, so akonadish didn't work at all to change the settings. We might have to do some performance optimizations at some point, but for the time being this works.
Diffstat (limited to 'common/log.h')
-rw-r--r--common/log.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/log.h b/common/log.h
index 92d6cdd..7d02634 100644
--- a/common/log.h
+++ b/common/log.h
@@ -38,6 +38,7 @@ enum FilterType {
38 * Note: In case of resources the application name is the identifier. 38 * Note: In case of resources the application name is the identifier.
39 */ 39 */
40void SINKCOMMON_EXPORT setDebugOutputFilter(FilterType, const QByteArrayList &filter); 40void SINKCOMMON_EXPORT setDebugOutputFilter(FilterType, const QByteArrayList &filter);
41QByteArrayList SINKCOMMON_EXPORT debugOutputFilter(FilterType type);
41 42
42/** 43/**
43 * Set the debug output fields. 44 * Set the debug output fields.
@@ -50,6 +51,7 @@ void SINKCOMMON_EXPORT setDebugOutputFilter(FilterType, const QByteArrayList &fi
50 * These are additional items to the default ones (level, area, message). 51 * These are additional items to the default ones (level, area, message).
51 */ 52 */
52void SINKCOMMON_EXPORT setDebugOutputFields(const QByteArrayList &filter); 53void SINKCOMMON_EXPORT setDebugOutputFields(const QByteArrayList &filter);
54QByteArrayList SINKCOMMON_EXPORT debugOutputFields();
53 55
54QDebug SINKCOMMON_EXPORT debugStream(DebugLevel debugLevel, int line, const char* file, const char* function, const char* debugArea = 0); 56QDebug SINKCOMMON_EXPORT debugStream(DebugLevel debugLevel, int line, const char* file, const char* function, const char* debugArea = 0);
55 57