log4cpp::SimpleConfigurator (3) Linux Manual Page
log4cpp::SimpleConfigurator –
This class implements a simple Configurator for log4cpp.
Synopsis
#include <SimpleConfigurator.hh>
Static Public Member Functions
static void configure (const std::string &initFileName) throw (ConfigureFailure)
Configure log4cpp with the configuration in the given file.
static void configure (std::istream &initFile) throw (ConfigureFailure)
Configure log4cpp with the configuration in the given file.
Detailed Description
This class implements a simple Configurator for log4cpp.
It is a temporary hack with an undocumented configuration format.
Deprecated
- As of version 0.3.2
log4cppincludes a log4j format compatiblePropertyConfigurator, removing the need forSimpleConfigurator. This class will be removed in 0.4.0.
Member Function Documentation
void log4cpp::SimpleConfigurator::configure (const std::string &initFileName)ConfigureFailure [static]
Configure log4cpp with the configuration in the given file. NB. The configuration file format is undocumented and may change without notice.
Since:
- 0.2.6
Parameters:
- initFileName name of the configuration file
Exceptions:
ConfigureFailureif the method encountered a read or syntax error.
void log4cpp::SimpleConfigurator::configure (std::istream &initFile)ConfigureFailure [static]
Configure log4cpp with the configuration in the given file. NB. The configuration file format is undocumented and may change without notice.
Since:
- 0.3.1
Parameters:
- initFile an input stream to the configuration file
Exceptions:
ConfigureFailureif the method encountered a read or syntax error.
Author
Generated automatically by Doxygen for log4cpp from the source code.
