8 #ifdef LOG4CPP_HAVE_IO_H 11 #ifdef LOG4CPP_HAVE_UNISTD_H 15 #include <sys/types.h> 24 #ifdef LOG4CPP_HAVE_SSTREAM 31 const std::string& fileName,
35 _originalFileName(fileName),
56 std::string name, filename;
59 params.
get_for(
"rool file appender").
required(
"name", name)(
"filename", filename)
60 .optional(
"append", append)(
"mode", mode);
std::auto_ptr< Appender > create_generation_file_appender(const FactoryParams &)
virtual void advanceGeneration()
required_params_validator required(const char *param, T &value) const
unsigned int _generation
The current generation (initializes to 0)
details::parameter_validator get_for(const char *tag) const
std::string _originalFileName
Filename given to the constructor, before an extension is applied.
GenerationalFileAppender(const std::string &name, const std::string &fileName, bool append=true, mode_t mode=00644)
Open "filename.0" and set _generation=0.