diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-02-05 12:35:39 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-02-05 12:35:39 +0100 |
commit | c8fbb5710737087b0cb5679d6211252dcba4ccce (patch) | |
tree | 433329a59a505596500520491dc4ab3f7bc9b9b6 /common/log.h | |
parent | e1716e503d96d4c8331fb1dc2e701f2b6df240ec (diff) | |
download | sink-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.h | 2 |
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 | */ |
40 | void SINKCOMMON_EXPORT setDebugOutputFilter(FilterType, const QByteArrayList &filter); | 40 | void SINKCOMMON_EXPORT setDebugOutputFilter(FilterType, const QByteArrayList &filter); |
41 | QByteArrayList 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 | */ |
52 | void SINKCOMMON_EXPORT setDebugOutputFields(const QByteArrayList &filter); | 53 | void SINKCOMMON_EXPORT setDebugOutputFields(const QByteArrayList &filter); |
54 | QByteArrayList SINKCOMMON_EXPORT debugOutputFields(); | ||
53 | 55 | ||
54 | QDebug SINKCOMMON_EXPORT debugStream(DebugLevel debugLevel, int line, const char* file, const char* function, const char* debugArea = 0); | 56 | QDebug SINKCOMMON_EXPORT debugStream(DebugLevel debugLevel, int line, const char* file, const char* function, const char* debugArea = 0); |
55 | 57 | ||