diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-12-22 22:05:40 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-12-22 22:05:40 +0100 |
commit | 6b1cf550608c2f17cbed9e375f15a4c14bfe8ace (patch) | |
tree | 2e693a731bb2e9ce1a793b14cef98cdc13e382cd /common/log.h | |
parent | b2ad8f785e801a35cadf254d827f56d648be510c (diff) | |
download | sink-6b1cf550608c2f17cbed9e375f15a4c14bfe8ace.tar.gz sink-6b1cf550608c2f17cbed9e375f15a4c14bfe8ace.zip |
More Log::Context
Diffstat (limited to 'common/log.h')
-rw-r--r-- | common/log.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/log.h b/common/log.h index 9063ac8..fc2a3ed 100644 --- a/common/log.h +++ b/common/log.h | |||
@@ -8,6 +8,9 @@ namespace Log { | |||
8 | 8 | ||
9 | struct Context { | 9 | struct Context { |
10 | Context() = default; | 10 | Context() = default; |
11 | Context(const QByteArray &n) : name(n) {} | ||
12 | Context(const char *n) : name(n) {} | ||
13 | |||
11 | QByteArray name; | 14 | QByteArray name; |
12 | Context subContext(const QByteArray &sub) const { | 15 | Context subContext(const QByteArray &sub) const { |
13 | return Context{name + "." + sub}; | 16 | return Context{name + "." + sub}; |