[Browserlaunch2-development] Logging
Brought to you by:
jchapman0
From: Thomas A. <tho...@ch...> - 2005-02-24 21:24:31
|
Hi, I added simple logging to BrowserLauncherTestApp, but you can use it in any class. Basic pattern: import net.sf.wraplog.Logger; class MyClass { private static Logger logger = Logger.getLogger(MyClass.class); ... void blah() { logger.error("cannot blah: " + actual + " must be " + expected"); } } The current implementation just logs debug/info messages to System.out, and warning/error messages to System.err. But this is easy to change or extend, see <http://wraplog.sourceforge.net/> for details. Thomas. |