Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
~
Functions
a
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
~
Variables
a
c
d
e
f
g
i
l
m
n
u
v
Typedefs
a
c
d
e
g
i
m
n
o
p
s
u
v
Enumerations
_
e
g
h
i
p
Enumerator
_
a
b
c
d
e
f
g
h
i
l
m
n
p
r
s
t
u
v
w
x
y
Classes
Class List
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
~
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
x
~
Variables
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
w
x
y
Typedefs
a
c
d
e
f
h
i
k
l
m
n
o
p
q
r
s
t
v
Enumerations
Enumerator
a
c
d
e
f
i
n
o
r
s
t
w
x
Related Functions
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
w
y
Functions
c
d
e
g
i
l
m
o
p
r
t
Variables
Typedefs
_
a
b
c
d
e
f
g
h
i
l
m
p
s
t
u
Enumerations
a
b
c
d
e
f
g
i
p
s
t
u
Enumerator
a
b
c
d
e
f
g
i
l
m
p
r
s
t
u
y
Macros
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
w
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
RollingFileAppender.hh
Go to the documentation of this file.
1
/*
2
* RollingFileAppender.hh
3
*
4
* See the COPYING file for the terms of usage and distribution.
5
*/
6
7
#ifndef _LOG4CPP_ROLLINGFILEAPPENDER_HH
8
#define _LOG4CPP_ROLLINGFILEAPPENDER_HH
9
10
#include <
log4cpp/Portability.hh
>
11
#include <
log4cpp/FileAppender.hh
>
12
#include <string>
13
#include <stdarg.h>
14
15
LOG4CPP_NS_BEGIN
16
22
class
LOG4CPP_EXPORT
RollingFileAppender
:
public
FileAppender
{
23
public
:
24
RollingFileAppender
(
const
std::string& name,
25
const
std::string& fileName,
26
size_t
maxFileSize = 10 * 1024 * 1024,
27
unsigned
int
maxBackupIndex = 1,
28
bool
append =
true
,
29
mode_t
mode = 00644);
30
31
virtual
void
setMaxBackupIndex(
unsigned
int
maxBackups);
32
virtual
unsigned
int
getMaxBackupIndex()
const
;
33
virtual
void
setMaximumFileSize(
size_t
maxFileSize);
34
virtual
size_t
getMaxFileSize()
const
;
35
36
virtual
void
rollOver();
37
38
protected
:
39
virtual
void
_append
(
const
LoggingEvent
& event);
40
41
unsigned
int
_maxBackupIndex
;
42
unsigned
short
int
_maxBackupIndexWidth
;
// keep constant index width by zeroing leading positions
43
44
size_t
_maxFileSize
;
45
private
:
46
// suppress assignment operator
47
RollingFileAppender
&
operator=
(
const
RollingFileAppender
&);
48
49
};
50
LOG4CPP_NS_END
51
52
53
#endif // _LOG4CPP_ROLLINGFILEAPPENDER_HH
FileAppender::_append
virtual void _append(const LoggingEvent &event)
Log in Appender specific way.
LoggingEvent
The top level namespace for all 'Log for C++' types and classes.
Definition:
LoggingEvent.hh:32
Portability.hh
LayoutAppender::operator=
LayoutAppender & operator=(const LayoutAppender &)
RollingFileAppender
RollingFileAppender is a FileAppender that rolls over the logfile once it has reached a certain size ...
Definition:
RollingFileAppender.hh:22
FileAppender
Definition:
FileAppender.hh:20
LOG4CPP_NS_BEGIN
#define LOG4CPP_NS_BEGIN
Definition:
Portability.hh:49
LOG4CPP_NS_END
#define LOG4CPP_NS_END
Definition:
Portability.hh:50
LOG4CPP_EXPORT
#define LOG4CPP_EXPORT
Definition:
Export.hh:21
RollingFileAppender::_maxBackupIndexWidth
unsigned short int _maxBackupIndexWidth
Definition:
RollingFileAppender.hh:42
RollingFileAppender::_maxFileSize
size_t _maxFileSize
Definition:
RollingFileAppender.hh:44
mode_t
int mode_t
Definition:
config-win32.h:145
FileAppender.hh
RollingFileAppender::_maxBackupIndex
unsigned int _maxBackupIndex
Definition:
RollingFileAppender.hh:41
rc_genicam_api
Author(s): Heiko Hirschmueller
autogenerated on Wed Dec 4 2024 03:10:11