14 #ifndef LOGGER_CONFIG_LOADER_HPP
15 #define LOGGER_CONFIG_LOADER_HPP
18 #include <Poco/AutoPtr.h>
19 #include <Poco/Configurable.h>
29 static const std::string sectionPatternFormatter;
30 static const std::string sectionFileChannel;
31 static const std::string sectionLogger;
32 static const std::string delimiter;
35 explicit LoggerConfigLoader(
const std::string& nodeName,
const std::string& configFileName=
"");
38 bool loadConfig(
const std::string& configFileName);
46 void loadSection(Poco::Util::IniFileConfiguration& iniFileConfiguration,
48 Poco::Configurable& configurable)
throw (Poco::Exception);
51 const std::string& loggerName)
throw (Poco::Exception);
54 const std::string& loggerName);
56 static void getLoggers(Poco::Util::IniFileConfiguration& iniFileConfiguration,
57 Poco::Util::IniFileConfiguration::Keys& loggerNames);
60 const Poco::Util::IniFileConfiguration::Keys& loggerNames)
throw (Poco::Exception);
62 static void checkExistSection(
const Poco::Util::IniFileConfiguration::Keys& sections,
63 const std::string&
sectionName)
throw (Poco::Exception);
69 Poco::Util::IniFileConfiguration::Keys
loggers;
76 #endif // LOGGER_CONFIG_LOADER_HPP