Co-authored-by: Fred Morcos <fm@fredmorcos.com>
}
#endif
if (g_slog == nullptr) {
- cerr << "Structured logging to systemd-journal requested but it is not available" << endl;
+ cerr << "Requested structured logging to systemd-journal, but it is not available" << endl;
}
}
else if (logname == "json") {
g_slog = Logging::Logger::create(loggerJSONBackend);
if (g_slog == nullptr) {
- cerr << "JSON logging to requested but it is not available" << endl;
+ cerr << "JSON logging requested but it is not available" << endl;
}
}
- ``default``: use the traditional logging system to output structured logging information.
- ``systemd-journal``: use systemd-journal.
When using this backend, provide ``-o verbose`` or simular output option to ``journalctl`` to view the full information.
-- ``json``: JSON objects are written to the standard error stream
+- ``json``: JSON objects are written to the standard error stream.
See :doc:`appendices/structuredlogging` for more details.
''',