diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-07-07 16:06:01 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-07-07 17:42:25 +0200 |
commit | 9bcb822963fc96c94dbe7dcc4134dcd2dac454ff (patch) | |
tree | 39a946ff8ae7119edb27342e96b65a9785282706 /common/log.cpp | |
parent | 9bf9c5c6b08fd086f40a39f033293ff02d9e7fd5 (diff) | |
download | sink-9bcb822963fc96c94dbe7dcc4134dcd2dac454ff.tar.gz sink-9bcb822963fc96c94dbe7dcc4134dcd2dac454ff.zip |
Prepared sinksh trace
Diffstat (limited to 'common/log.cpp')
-rw-r--r-- | common/log.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/common/log.cpp b/common/log.cpp index b0f6237..83cdc8a 100644 --- a/common/log.cpp +++ b/common/log.cpp | |||
@@ -16,6 +16,12 @@ static QSharedPointer<QSettings> config() | |||
16 | return QSharedPointer<QSettings>::create(QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + "/sink/log.ini", QSettings::IniFormat); | 16 | return QSharedPointer<QSettings>::create(QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + "/sink/log.ini", QSettings::IniFormat); |
17 | } | 17 | } |
18 | 18 | ||
19 | static QByteArray sPrimaryComponent; | ||
20 | void Sink::Log::setPrimaryComponent(const QString &component) | ||
21 | { | ||
22 | sPrimaryComponent = component.toUtf8(); | ||
23 | } | ||
24 | |||
19 | class DebugStream : public QIODevice | 25 | class DebugStream : public QIODevice |
20 | { | 26 | { |
21 | public: | 27 | public: |