summaryrefslogtreecommitdiffstats
path: root/common/log.h
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-12-22 22:05:40 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-12-22 22:05:40 +0100
commit6b1cf550608c2f17cbed9e375f15a4c14bfe8ace (patch)
tree2e693a731bb2e9ce1a793b14cef98cdc13e382cd /common/log.h
parentb2ad8f785e801a35cadf254d827f56d648be510c (diff)
downloadsink-6b1cf550608c2f17cbed9e375f15a4c14bfe8ace.tar.gz
sink-6b1cf550608c2f17cbed9e375f15a4c14bfe8ace.zip
More Log::Context
Diffstat (limited to 'common/log.h')
-rw-r--r--common/log.h3
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
9struct Context { 9struct 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};