Skip to content

Commit

Permalink
journald: wider range of log severities
Browse files Browse the repository at this point in the history
The previous code made it impossible to distinguish between the `debug`
and `trace` severities. So instead of trying hard to preserve the
equivalence of `spdlog::level::debug` with `LOG_DEBUG`, which is -- in
the end -- just an arbitrary name, make sure that functionality is not
lost.
  • Loading branch information
jktjkt committed Oct 30, 2019
1 parent e4419c2 commit d4d3afd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/spdlog/sinks/systemd_sink.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ class systemd_sink : public base_sink<Mutex>
//
systemd_sink()
: syslog_levels_{{/* spdlog::level::trace */ LOG_DEBUG,
/* spdlog::level::debug */ LOG_DEBUG,
/* spdlog::level::info */ LOG_INFO,
/* spdlog::level::debug */ LOG_INFO,
/* spdlog::level::info */ LOG_NOTICE,
/* spdlog::level::warn */ LOG_WARNING,
/* spdlog::level::err */ LOG_ERR,
/* spdlog::level::critical */ LOG_CRIT,
/* spdlog::level::off */ LOG_INFO}}
/* spdlog::level::off */ LOG_ALERT}}
{}

~systemd_sink() override {}
Expand Down

0 comments on commit d4d3afd

Please sign in to comment.