Using System.out and System.err from ImageJ plugins (Java)
Posted by
Burger Wilhelm on
Feb 18, 2013; 12:46pm
URL: http://imagej.273.s1.nabble.com/Using-System-out-and-System-err-from-ImageJ-plugins-Java-tp5001799.html
Hello all,
I would like to share a piece of Java code for ImageJ that I wrote out of need and perhaps others might find useful too:
This small library facilitates the redirection of output to System.out and System.err to the ImageJ Log-console. Typically in ImageJ output sent to the standard system streams by calls such as System.out.println(...) are suppressed. Redirecting the standard output streams makes this output appear in ImageJ's log console, analogous to using the IJ.log() method. This is particularly useful for debugging imported code and for writing classes that are independent of ImageJ.
More details and the complete code with examples can be found here:
http://staff.fh-hagenberg.at/burger/imagej/index.htmlComments and suggestions for improvements are welcome.
Best regards,
Wilhelm
www.imagingbook.com
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html