Is there a good reason to roll our own logging framework? What about http://www.slf4j.org/ or one of the many other alternatives?
Ian. On Sun, Mar 18, 2012 at 6:40 PM, Marco Schulze <marco.c.schulze at gmail.com>wrote: > One thing has been bothering me: those 'if (logMINOR) Logger.minor(...', > and the mess that logging is inside fred. I've written a very simple > replacement for Logger + associated classes with the following changes: > > - Log level (renamed to severity) filtering is done by Logging.log(); > - Specific writer classes are replaced by a simple OutputStream, which > defaults to System.err. Formatting is also unified; > - Severity cases are broadened (FATAL, ERROR, WARNING, INFO, DEBUG and > TRACE), MINOR is mapped to DEBUG, and NORMAL is mapped to INFO; > - No logging method accepts an Object parameter - hashCode() is not > exactly useful. > > Additionally, log rotation will be moved outside (possibly inside Node). > > Currently, the log format is '<severity>\t<message>'. > ______________________________**_________________ > Devl mailing list > Devl at freenetproject.org > https://emu.freenetproject.**org/cgi-bin/mailman/listinfo/**devl<https://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl> > -- Ian Clarke Personal blog: http://blog.locut.us/ -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://emu.freenetproject.org/pipermail/devl/attachments/20120321/7d3d7673/attachment.html>
