Engauge Digitizer 2
Loading...
Searching...
No Matches
RollingFileAppender.hh
Go to the documentation of this file.
1#ifndef ROLLING_FILE_APPENDER_HH
2#define ROLLING_FILE_APPENDER_HH
3
5#include <string>
6#include <stdarg.h>
7
8namespace log4cpp {
9
12 {
13 public:
15 RollingFileAppender (const std::string &name,
16 const std::string &fileName,
17 size_t maxFileSize,
18 unsigned int maxBackupIndex,
19 bool append);
20 virtual ~RollingFileAppender();
21
23 void setMaxBackupIndex(unsigned int maxBackups);
24
26 unsigned int getMaxBackupIndex() const;
27
30
32 size_t getMaxFileSize() const;
33
35 bool getAppend() const;
36
37 virtual void setLayout(Layout *layout);
38
39 private:
40
41 std::string m_fileName;
42 size_t m_maxFileSize;
43 unsigned int m_maxBackupIndex;
44 bool m_append;
45 };
46}
47
48#endif // ROLLING_FILE_APPENDER_HH
const int INNER_RADIUS_MIN
Noop class that mimics the same class in log4cpp library.
Noop version that mimics the same class in the log4cpp library.
Definition Layout.hh:12
Noop class that mimics the same class in the log4cpp library.
void setMaximumFileSize(size_t maxFileSize)
Noop method for setting the maximum file size.
size_t getMaxFileSize() const
Noop method for getting the maximum file size.
RollingFileAppender(const std::string &name, const std::string &fileName, size_t maxFileSize, unsigned int maxBackupIndex, bool append)
Single constructor.
virtual void setLayout(Layout *layout)
Set the layout for this Appender.
bool getAppend() const
Noop method for getting the append flag.
unsigned int getMaxBackupIndex() const
Noop method for getting the number of backups.
void setMaxBackupIndex(unsigned int maxBackups)
Noop method for setting the number of backups.