17 explicit Handler(
const std::string& name);
27 void setFormatter(std::unique_ptr<Formatter> formatter);
28 void setPattern(
const std::string& pattern);
29 void format(priv::Message& msg);
31 virtual void flush() = 0;
32 virtual void handle(
const priv::Message& msg) = 0;
34 bool shouldLog(
Level level)
const;
35 void setLevel(
Level level);
36 Level getLevel()
const;
44 template<
typename T,
typename... Args>
45 T*
makeHandler(
const std::string& handlerName, Args&&... args);
T * makeHandler(const std::string &handlerName, Args &&... args)
std::unique_ptr< Formatter > _formatter