Agora
1.2.0
Agora project
|
Go to the documentation of this file.
22 template<
typename Mutex>
52 std::vector<std::shared_ptr<sink>> &
sinks()
79 set_formatter_(details::make_unique<spdlog::pattern_formatter>(pattern));
82 void set_formatter_(std::unique_ptr<spdlog::formatter> sink_formatter)
override
90 std::vector<std::shared_ptr<sink>>
sinks_;
Definition: dist_sink.h:23
void set_formatter_(std::unique_ptr< spdlog::formatter > sink_formatter) override
Definition: dist_sink.h:82
dist_sink & operator=(const dist_sink &)=delete
std::vector< std::shared_ptr< sink > > & sinks()
Definition: dist_sink.h:52
void set_sinks(std::vector< std::shared_ptr< sink >> sinks)
Definition: dist_sink.h:46
void set_pattern_(const std::string &pattern) override
Definition: dist_sink.h:77
std::vector< std::shared_ptr< sink > > sinks_
Definition: dist_sink.h:90
bool should_log(level::level_enum msg_level) const
Definition: sink-inl.h:12
Definition: base_sink.h:19
virtual void log(const details::log_msg &msg)=0
void flush_() override
Definition: dist_sink.h:69
void remove_sink(std::shared_ptr< sink > sink)
Definition: dist_sink.h:40
level::level_enum level
Definition: log_msg.h:21
void add_sink(std::shared_ptr< sink > sink)
Definition: dist_sink.h:34
void sink_it_(const details::log_msg &msg) override
Definition: dist_sink.h:58
SPDLOG_INLINE int remove(const filename_t &filename) SPDLOG_NOEXCEPT
Definition: os-inl.h:163
virtual void set_formatter(std::unique_ptr< spdlog::formatter > sink_formatter)=0
dist_sink(std::vector< std::shared_ptr< sink >> sinks)
Definition: dist_sink.h:27