Win a copy of Kubernetes in Action this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Common-Logging and Log4j in Hibernate  RSS feed

 
Ranch Hand
Posts: 588
  • 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
 
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
Boost this thread!