summaryrefslogtreecommitdiffstats
path: root/common/log.h
diff options
context:
space:
mode:
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};