| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | #pragma once | ||
| 2 | |||
| 3 | #include <log4cpp/FactoryParams.hh> | ||
| 4 | #include <log4cpp/AppendersFactory.hh> | ||
| 5 | #include <log4cpp/LayoutsFactory.hh> | ||
| 6 | #include <log4cpp/Category.hh> | ||
| 7 | |||
| 8 | #include <yaml-cpp/yaml.h> | ||
| 9 | |||
| 10 | namespace na64dp { | ||
| 11 | namespace util { | ||
| 12 | |||
| 13 | class YAMLLog4cppConfiguratorImpl { | ||
| 14 | public: | ||
| 15 | ✗ | YAMLLog4cppConfiguratorImpl() {} | |
| 16 | ✗ | virtual ~YAMLLog4cppConfiguratorImpl() {} | |
| 17 | void doConfigure(const std::string & filename); | ||
| 18 | void doConfigure(const YAML::Node & cfg); | ||
| 19 | protected: | ||
| 20 | void _configure_category_from_YAML( const YAML::Node & catCfg | ||
| 21 | , log4cpp::Category & cat | ||
| 22 | , std::list<std::string> & catNames | ||
| 23 | ); | ||
| 24 | private: | ||
| 25 | std::map<std::string, log4cpp::Appender*> appenders; | ||
| 26 | }; | ||
| 27 | |||
| 28 | } | ||
| 29 | } | ||
| 30 |