blob: b1a1d9923e36963380df1daa44a1209247d1087a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#ifndef LOGGER_H_6E7B9594
#define LOGGER_H_6E7B9594
#include <wx/wxprec.h>
#ifndef WX_PRECOMP
#include <wx/wx.h>
#endif
#include <fstream>
#include <mutex>
class Logger : public wxLog {
public:
Logger();
void Flush() override;
~Logger();
protected:
void DoLogText(const wxString& msg) override;
private:
std::ofstream logfile_;
std::mutex file_mutex_;
};
#endif /* end of include guard: LOGGER_H_6E7B9594 */
|