blob: 5ab9b867e8a0c133be76425fe5393a603dba154a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#ifndef __FILE_LOGSINK_H
#define __FILE_LOGSINK_H
#include "LogSink.hpp"
#include <string>
#include <fstream>
class FileLogSink : public LogSink
{
public:
FileLogSink( const LogLevel level, const std::string &filename );
~FileLogSink( );
LOGGER_DLL_VISIBLE virtual void log( const LogLevel level, const std::string &msg );
private:
std::string m_filename;
std::ofstream m_file;
};
#endif
|