File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Object Relational Mapping and the fly likes Common-Logging and Log4j in Hibernate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Common-Logging and Log4j in Hibernate" Watch "Common-Logging and Log4j in Hibernate" New topic

Common-Logging and Log4j in Hibernate

jacob deiter
Ranch Hand

Joined: Apr 02, 2008
Posts: 580
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

Joined: Apr 14, 2004
Posts: 10336

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.

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
I agree. Here's the link:
subject: Common-Logging and Log4j in Hibernate
It's not a secret anymore!