Engauge Digitizer  2
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 
8 namespace 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 
29  void setMaximumFileSize(size_t maxFileSize);
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
Noop class that mimics the same class in log4cpp library.
Definition: FileAppender.hh:10
virtual void setLayout(Layout *layout)
Set the layout for this Appender.
Noop version that mimics the same class in the log4cpp library.
Definition: Layout.hh:11
bool getAppend() const
Noop method for getting the append flag.
void setMaxBackupIndex(unsigned int maxBackups)
Noop method for setting the number of backups.
size_t getMaxFileSize() const
Noop method for getting the maximum file size.
void setMaximumFileSize(size_t maxFileSize)
Noop method for setting the maximum file size.
RollingFileAppender(const std::string &name, const std::string &fileName, size_t maxFileSize, unsigned int maxBackupIndex, bool append)
Single constructor.
unsigned int getMaxBackupIndex() const
Noop method for getting the number of backups.
Noop class that mimics the same class in the log4cpp library.