#include "wx/filefn.h"
#include "wx/log.h"
#include "wx/thread.h"
+ #include "wx/intl.h"
#endif
#include "wx/init.h"
int wxEntryReal(int& argc, wxChar **argv)
{
-#if wxUSE_LOG
- // Create a non-GUI log target, to be used until GUI (if any) is ready.
- // Target will be reset by wxAppConsole::Initialize, when GUI logging will work.
- wxLog::GetActiveTarget();
-#endif
-
// library initialization
if ( !wxEntryStart(argc, argv) )
{
+#if wxUSE_LOG
// flush any log messages explaining why we failed
delete wxLog::SetActiveTarget(NULL);
+#endif
return -1;
}