• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

Can I run hibernate annotations 3 without sl4j

 
Ranch Hand
Posts: 275
jQuery Eclipse IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

I am using hibernate annotations v 3.4 and I run atest on below code-



The exception Iget is -


I understand AnnotationsConfiguration usses sl4j for logging -



Can i configure it to use log4j ?
Is it mandatory to add sl4j ?
 
Bartender
Posts: 1682
7
Android Mac OS X IntelliJ IDE Spring Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am moving this topic to our Other Open Source Projects forum as this question relates to logging frameworks more than ORM.
 
Bill Gorder
Bartender
Posts: 1682
7
Android Mac OS X IntelliJ IDE Spring Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
sl4j is a logging abstraction it is not a logging framework. You can use whatever logging framework you would like but you must have sl4j on the classpath. If this is a new project I would recommend using Logback over log4j but either work with sl4j.

Here is a post where a portion discusses configuring sl4j and logback.

http://gordondickens.com/wordpress/2012/07/03/enterprise-spring-best-practices-part-1-project-config/#logging


here is a post describing lo4j with sl4j
http://www.mkyong.com/hibernate/how-to-configure-log4j-in-hibernate-project/


Conflicting versions of sl4j on the classpath will cause issues as well. The first link I posted shows how you can use the maven enforcer plugin to help with this.
 
reply
    Bookmark Topic Watch Topic
  • New Topic