 |
wxMaxima
|
Go to the documentation of this file.
29 #ifndef ERRORREDIRECTOR_H
30 #define ERRORREDIRECTOR_H
58 void Flush()
override;
60 void DoLogRecord(wxLogLevel level,
62 const wxLogRecordInfo& info)
override;
85 void SetLog(std::unique_ptr<wxLog> &&logger);
103 bool m_batchMode =
false;
107 static bool m_logToStdErr;
118 #endif // ERRORREDIRECTOR_H
wxLog * m_logNew
the current log target - equal to m_logOwned or this
Definition: ErrorRedirector.h:97
void Flush() override
Definition: ErrorRedirector.cpp:103
If a variable of this class is alive errors won't create popup dialogues.
Definition: ErrorRedirector.h:111
Redirect error messages (but not warnings) to a second target.
Definition: ErrorRedirector.h:37
wxLog * GetOldLog() const
ErrorRedirector(std::unique_ptr< wxLog > &&newLog)
Definition: ErrorRedirector.cpp:36
void SetLogThis()
Sets ourseves as the log target.
Definition: ErrorRedirector.cpp:62
void SetBatchMode()
Sets the "batch mode" flag that causes error messages to be output to stderr, as well.
Definition: ErrorRedirector.h:71
void SetLog(std::unique_ptr< wxLog > &&logger)
Definition: ErrorRedirector.cpp:55
std::unique_ptr< wxLog > m_logOwned
the owned new log, of null if no log is owned
Definition: ErrorRedirector.h:101
static bool LoggingToStdErr()
Output all log messages to stderr, too.
Definition: ErrorRedirector.h:93
~ErrorRedirector() override
Restores the previous log target.
Definition: ErrorRedirector.cpp:49
static void LogToStdErr()
Output all log messages to stderr, too.
Definition: ErrorRedirector.h:90
static int m_messages_logPaneOnly
Definition: ErrorRedirector.h:44
wxLog *const m_logOld
the previous log target
Definition: ErrorRedirector.h:99