Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Common-Logging and Log4j in Hibernate

 
jacob deiter
Ranch Hand
Posts: 584
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all

What is the difference between Commom-logging and Log 4j.IN Hibernate,is it nessary to use both common logging and Log4j.I read a book ,in that they use coomon logging and Log4j.If both Tool do the same work,then why same use in same application
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Commons logging is an abstraction layer on top of logging frameworks, it doesn't in itself log anything.

log4j is a logging framework. It does the actual logging.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic