I'm trying to setup a log system with wxLogStream and wxLogGui enabled
I would like to have the functionality of wxLogGui (message boxes for wxLogMessage,wxLogWarning,wxLogError, and status bar for wxLogStatus) but i would also like to output more detailed information to the file (with wxLogVerbose).
One possibility i thought was to use wxLog::SetVerbose(), but since it is a static function, I cant just apply it to just one wxLog* instance (i.e. both wxLogGui and wxLogStream now have verbose) and as a result i get message boxes from the wxLogGui for verbose outputs
Any ideas for a solution? We could
Thanks!
Here's an example of my setup code for the logs
Code: Select all
wxLog::SetLogLevel(wxLOG_Max);
wxLog::SetVerbose();
wxFFile *test=new wxFFile("test.log","a");
wxLog *temp=new wxLogStderr(test->fp());
wxLog::SetActiveTarget(temp);
wxLog::SetActiveTarget(new wxLogChain(new wxLogGui()));