Skip to content

Commit

Permalink
Merge branch 'gabime:v1.x' into v1.x
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxwellGengYF authored Jul 4, 2024
2 parents 58ca6ef + eeb22c1 commit fd8a848
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions include/spdlog/sinks/syslog_sink.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,14 @@ class syslog_sink : public base_sink<Mutex> {
//
// Simply maps spdlog's log level to syslog priority level.
//
int syslog_prio_from_level(const details::log_msg &msg) const {
virtual int syslog_prio_from_level(const details::log_msg &msg) const {
return syslog_levels_.at(static_cast<levels_array::size_type>(msg.level));
}

private:
using levels_array = std::array<int, 7>;
levels_array syslog_levels_;

private:
// must store the ident because the man says openlog might use the pointer as
// is and not a string copy
const std::string ident_;
Expand Down

0 comments on commit fd8a848

Please sign in to comment.