Hello,

I have solved the following problem:

if run time exception thrown by some standard component was catched by 
Swing, the exception trace was only written to the standard error stream 
stderr and was not visible in any logs.

I have redirected the both standard output streams to the logging system 
so that they not only appear on the console but are also logged in the 
log file.

The description of how it works can be found on

http://blogs.sun.com/nickstephen/entry/java_redirecting_system_out_and

I have used a slightly changed version of the example code from this 
article.

I hope that you like the change and accept the solution.

One of the new classes coming with the example (StdOutErrLevel) has a 
very strange copyright, but really few lines of code. Eric, could it be 
a problem from your point of view? I could remove the file if it should 
be because we do not use serializing and deserializing of Loggers, but 
it could remain it would be a more accurate style.

Best regards, Dimitry

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Freemind-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freemind-developer

Reply via email to