File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -61,19 +61,19 @@ class syslog_sink : public base_sink<Mutex> {
61
61
void flush_ () override {}
62
62
bool enable_formatting_ = false ;
63
63
64
- private:
65
- using levels_array = std::array<int , 7 >;
66
- levels_array syslog_levels_;
67
- // must store the ident because the man says openlog might use the pointer as
68
- // is and not a string copy
69
- const std::string ident_;
70
-
71
64
//
72
65
// Simply maps spdlog's log level to syslog priority level.
73
66
//
74
67
int syslog_prio_from_level (const details::log_msg &msg) const {
75
68
return syslog_levels_.at (static_cast <levels_array::size_type>(msg.level ));
76
69
}
70
+
71
+ private:
72
+ using levels_array = std::array<int , 7 >;
73
+ levels_array syslog_levels_;
74
+ // must store the ident because the man says openlog might use the pointer as
75
+ // is and not a string copy
76
+ const std::string ident_;
77
77
};
78
78
79
79
using syslog_sink_mt = syslog_sink<std::mutex>;
You can’t perform that action at this time.
0 commit comments