FIX: [STUDIO-2846] redirect wxLog to Boost Log
Change-Id: Idb95e9095c857eee37d809079bab08903f336bb9
This commit is contained in:
parent
d0905486ff
commit
0699ee2da3
|
@ -2228,8 +2228,18 @@ bool GUI_App::OnInit()
|
|||
}
|
||||
}
|
||||
|
||||
class wxBoostLog : public wxLog
|
||||
{
|
||||
void DoLogText(const wxString &msg) {
|
||||
|
||||
BOOST_LOG_TRIVIAL(warning) << msg.ToUTF8().data();
|
||||
}
|
||||
};
|
||||
|
||||
bool GUI_App::on_init_inner()
|
||||
{
|
||||
wxLog::SetActiveTarget(new wxBoostLog());
|
||||
|
||||
// Set initialization of image handlers before any UI actions - See GH issue #7469
|
||||
wxInitAllImageHandlers();
|
||||
#ifdef NDEBUG
|
||||
|
|
Loading…
Reference in New Issue