• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

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.
 
Can't .... do .... plaid .... So I did this tiny ad instead:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic