-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathlog.h
36 lines (28 loc) · 896 Bytes
/
log.h
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
30
31
32
33
34
35
36
/////////////////////////////////////////////////////////////////////////////////
// Author: Steven Lamerton
// Copyright: Copyright (C) 2009 - 2011 Steven Lamerton
// License: GNU GPL 2 http://www.gnu.org/licenses/gpl-2.0.html
/////////////////////////////////////////////////////////////////////////////////
#ifndef LOGLISTCTRL_H
#define LOGLISTCTRL_H
#include <wx/log.h>
class wxTextFile;
//An empty log class to use when we are not logging to a file
class LogBlank : public wxLog
{};
class LogMessageQueue : public wxLog
{
public:
void DoLogRecord(wxLogLevel level, const wxString& msg, const wxLogRecordInfo& info);
};
//Log to a (user specified) file
class LogFile : public wxLog
{
public:
LogFile(wxTextFile* file);
void DoLogRecord(wxLogLevel level, const wxString& msg, const wxLogRecordInfo& info);
private:
wxTextFile *file;
int count;
};
#endif