incubator-jspwiki-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig Russell (JIRA)" <>
Subject [jira] Commented: (JSPWIKI-376) Move from log4j to slf4j
Date Sun, 09 Nov 2008 20:54:44 GMT


Craig Russell commented on JSPWIKI-376:

To future-proof your code, I'd recommend abstracting the logging used by jspwiki to a single
set of interfaces used by each component, and a factory class that returns an instance of
the logging interface. As long as you include in the interface all of the functionality needed,
if you want to add another kind of logger you just need to update the factory and write a
small adapter class. If some strange environment gives you a problem, there's just the adapter
class that needs to be updated or a new adapter added.

> Move from log4j to slf4j
> ------------------------
>                 Key: JSPWIKI-376
>                 URL:
>             Project: JSPWiki
>          Issue Type: Improvement
>          Components: Core & storage
>            Reporter: Janne Jalkanen
>            Assignee: Harry Metske
>            Priority: Minor
>             Fix For: 3.0
> SLF4J allows far more flexible logging than log4j, and it would allow us to get rid of
these dumb log4j compatibility problems that sometimes occur.  It also plays better with other
applications, gives the user more power to choose how to log his stuff, and is also pretty
cool otherwise. The change would be relatively trivial, and would probably be largely invisible
to the users (since we could continue shipping with necessary log4j jars).
> The license is MIT/X11, so that's fine.
> Opinions?

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message