00001
00002
00003
00004
00005
00006
00007
00008 #ifndef _LOG4CPP_SIMPLECONFIGURATOR_HH
00009 #define _LOG4CPP_SIMPLECONFIGURATOR_HH
00010
00011 #include "log4cpp/Portability.hh"
00012 #include "log4cpp/Export.hh"
00013 #include <string>
00014 #include <stdexcept>
00015
00016 namespace log4cpp {
00017
00018 class LOG4CPP_EXPORT ConfigureFailure : public std::runtime_error {
00019 public:
00020 ConfigureFailure(const std::string& reason);
00021 };
00022
00023 class LOG4CPP_EXPORT SimpleConfigurator {
00024 public:
00025 static void configure(const std::string& initFileName) throw (ConfigureFailure);
00026 };
00027 }
00028
00029 #endif