Engauge Digitizer  2
RollingFileAppender.cpp
1 #include "log4cpp/RollingFileAppender.hh"
2 
3 namespace log4cpp {
4 
5  RollingFileAppender::RollingFileAppender (const std::string &name,
6  const std::string &fileName,
7  size_t maxFileSize,
8  unsigned int maxBackupIndex,
9  bool append) :
10  FileAppender (name),
11  m_fileName (fileName),
12  m_maxFileSize (maxFileSize),
13  m_maxBackupIndex (maxBackupIndex),
14  m_append (append)
15  {
16  }
17 
18  RollingFileAppender::~RollingFileAppender ()
19  {
20  }
21 
23  {
24  }
25 
27  {
28  return m_append;
29  }
30 
32  {
33  return m_maxBackupIndex;
34  }
35 
36  void RollingFileAppender::setMaximumFileSize(size_t maxFileSize)
37  {
38  m_maxFileSize = maxFileSize;
39  }
40 
42  {
43  return m_maxFileSize;
44  }
45 
47  {
48  }
49 }
50 
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.