Refactored sink interface and base_sink

This commit is contained in:
gabime
2018-07-14 16:21:53 +03:00
parent 2bc05b6b17
commit c2a49080aa
25 changed files with 200 additions and 120 deletions

View File

@@ -31,7 +31,7 @@ public:
logger(const std::string &name, sink_ptr single_sink);
logger(const std::string &name, sinks_init_list sinks);
template<class It>
template<typename It>
logger(std::string name, const It &begin, const It &end);
virtual ~logger();
@@ -118,7 +118,7 @@ public:
// create a FormatterT formatter for each sink in this logger.
// each sink gets its own private copy of a formatter object.
template<class FormatterT, typename... Args>
template<typename FormatterT, typename... Args>
void set_formatter(const Args &... args);
void flush();