aboutsummaryrefslogtreecommitdiff
path: root/bbot/diagnostics.cxx
diff options
context:
space:
mode:
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>";
+ }
}