aboutsummaryrefslogtreecommitdiff
path: root/bbot/diagnostics.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-04-18 13:50:18 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-04-18 13:50:18 +0200
commit2d8dc6c905dbde7da2d324a559d08af77231d062 (patch)
tree035b4f863d8e1108b185c9f7ddda41a4eeb8ddce /bbot/diagnostics.cxx
parent2c8ca08d0407d61af1a00152e3a120a6eff938f9 (diff)
Add --systemd-daemon option to worker
Diffstat (limited to 'bbot/diagnostics.cxx')
-rw-r--r--bbot/diagnostics.cxx21
1 files changed, 21 insertions, 0 deletions
diff --git a/bbot/diagnostics.cxx b/bbot/diagnostics.cxx
index 6ad2151..c6008c6 100644
--- a/bbot/diagnostics.cxx
+++ b/bbot/diagnostics.cxx
@@ -44,4 +44,25 @@ namespace bbot
fail_mark fail ("error: ");
const fail_end endf;
+
+ // Right arrow followed by newline.
+ //
+ const char systemd_indent[] = "\xE2\x86\xB2\n";
+
+ void
+ systemd_diagnostics (bool with_critical)
+ {
+ trace_indent =
+ fail.indent_ =
+ error.indent_ =
+ warn.indent_ =
+ info.indent_ =
+ text.indent_ = systemd_indent;
+
+ fail.type_ = with_critical ? "<2>" : "<3>";
+ error.type_ = "<3>";
+ warn.type_ = "<4>";
+ info.type_ = "<6>";
+ trace_type = "<7>";
+ }
}