Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
include
log4cpp
GenerationalFileAppender.hh
Go to the documentation of this file.
1
/*
2
* GenerationalFileAppender.hh
3
*
4
* See the COPYING file for the terms of usage and distribution.
5
*/
6
7
#ifndef _LOG4CPP_GENERATIONALFILEAPPENDER_HH
8
#define _LOG4CPP_GENERATIONALFILEAPPENDER_HH
9
10
#include <
log4cpp/Portability.hh
>
11
#include <
log4cpp/FileAppender.hh
>
12
#include <string>
13
#include <stdarg.h>
14
15
namespace
log4cpp
{
16
28
class
LOG4CPP_EXPORT
GenerationalFileAppender
:
public
FileAppender
{
29
public
:
31
GenerationalFileAppender
(
const
std::string& name,
32
const
std::string& fileName,
33
bool
append =
true
,
34
mode_t
mode = 00644);
35
42
virtual
void
advanceGeneration();
43
44
protected
:
45
47
std::string
_originalFileName
;
49
unsigned
int
_generation
;
50
};
51
}
52
53
#endif // _LOG4CPP_GENERATIONALFILEAPPENDER_HH
log4cpp::FileAppender
Definition:
FileAppender.hh:20
Portability.hh
log4cpp::GenerationalFileAppender::_generation
unsigned int _generation
The current generation (initializes to 0)
Definition:
GenerationalFileAppender.hh:49
LOG4CPP_EXPORT
#define LOG4CPP_EXPORT
Definition:
Export.hh:26
log4cpp
Definition:
AbortAppender.hh:16
log4cpp::GenerationalFileAppender
Definition:
GenerationalFileAppender.hh:28
log4cpp::mode_t
int mode_t
Definition:
config-win32.h:159
log4cpp::GenerationalFileAppender::_originalFileName
std::string _originalFileName
Filename given to the constructor, before an extension is applied.
Definition:
GenerationalFileAppender.hh:47
FileAppender.hh
log4cpp
Author(s): Stephen Roderick, Bastiaan Bakker, Cedric Le Goater, Steve Ostlind, Marcel Harkema, Walter Stroebel, Glenn Scott and Tony Cheung
autogenerated on Sun Jun 23 2019 19:14:17