[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-3486) Include one ore more SLF4J "adapters"

Ceki Gulcu (JIRA) noreply at atlassian.com
Fri Nov 13 14:32:08 EST 2009


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-3486?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=34581#action_34581 ] 

Ceki Gulcu commented on HHH-3486:
---------------------------------

Sam's comments are two pronged. Let me answer each in turn.

If only slf4j-api.jar is not found on the classpath but no binding artifact such as slf4j-simple.jar or slf4j-log4j12.jar, then LoggerFactory will output an error message (mentioned multiple times above) and throw an exception. This is indeed different than log4j.jar without log4j.properties which would simply output a warning message without failing (whereas SLF4J fails). 

On Sam's 2nd point. Adding more flexibility in SLF4J's binding strategy (via properties) would introduce an unnecessary level of complexity. Having said that, if you place 2 or more bindings on the class path, SLL4J will pick up the first, and output a warning message listing the location of all the bindings, i.e. jar files, it found, so that you can remove the superfluous bindings. SLF4J will not fail in this case.

HTH

> Include one ore more SLF4J "adapters"
> -------------------------------------
>
>                 Key: HHH-3486
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3486
>             Project: Hibernate Core
>          Issue Type: Improvement
>          Components: build
>    Affects Versions: 3.3.0.GA, 3.3.0.SP1, 3.3.1
>            Reporter: Chris Bredesen
>            Assignee: Steve Ebersole
>
> Hibernate, as of 3.3, no longer distributes all jars needed to run the framework.  SLF4J requires the inclusion of the SLF4J library as well as either a native or a wrapped implementation.  The manual vaguely references such a need but it's never quite clear that the user must visit the SLF4J website and obtain these jars himself.  Maven users are of course unaffected since the additional SLF4J jars are published in the central repo.
> "Adapter" may be the wrong term here but I think the point has been made :)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list