summaryrefslogtreecommitdiff
path: root/include/logger/FileLogSink.hpp
blob: 0acb6b90dfd19d00d090016cab5f2d56ee0b4446 (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( );
		
		DLL_VISIBLE virtual void log( const LogLevel level, const std::string &msg );
	
	private:
		std::string m_filename;
		std::ofstream m_file;
};

#endif