34 std::vector<std::shared_ptr<sink>>
_sinks;
38 for (
auto &
sink : _sinks)
50 for (
auto &
sink : _sinks)
60 _sinks.push_back(sink);
66 _sinks.erase(
std::remove(_sinks.begin(), _sinks.end(),
sink), _sinks.end());
bool should_log(level::level_enum msg_level) const
int remove(const filename_t &filename)
dist_sink< std::mutex > dist_sink_mt
dist_sink & operator=(const dist_sink &)=delete
std::vector< std::shared_ptr< sink > > _sinks
virtual void log(const details::log_msg &msg)=0
void _sink_it(const details::log_msg &msg) override
void add_sink(std::shared_ptr< sink > sink)
virtual ~dist_sink()=default
void remove_sink(std::shared_ptr< sink > sink)
dist_sink< details::null_mutex > dist_sink_st