blob: a01ea94733433730480f67e0d86ad3ffcef522c9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#ifndef APPENDERFILE_H
#define APPENDERFILE_H
#include "Appender.h"
class AppenderFile: public Appender
{
public:
AppenderFile(uint8 _id, std::string const& _name, LogLevel level, const char* filename, const char* mode, bool backup);
~AppenderFile();
FILE* OpenFile(std::string const& _name, std::string const& _mode, bool _backup);
private:
void _write(LogMessage& message);
FILE* logfile;
std::string filename;
std::string mode;
bool dynamicName;
bool backup;
};
#endif
|