File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Open Source Projects and the fly likes org.apache.log4j.Logger Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "org.apache.log4j.Logger" Watch "org.apache.log4j.Logger" New topic


Rakesh Basani
Ranch Hand

Joined: Jun 04, 2012
Posts: 38
Hi guys..

what this class (org.apache.log4j.Logger) is all about.. can any one give me clear view about this....

Thanks in advance.
Jaikiran Pai

Joined: Jul 20, 2005
Posts: 10441

what this class (org.apache.log4j.Logger) is all about.. can any one give me clear view about this....

That's a class which is available in the Log4j project which is a logging library. You can find more details about it on their project site

[My Blog] [JavaRanch Journal]
Bill Gorder

Joined: Mar 07, 2010
Posts: 1682

A lot of Maven archetypes put this in for you as for a very long time Log4j is just what you used. For any new projects I now rip this out and replace it with Logback and Sl4j.

You can read more

Note that all of these 3 projects have the same primary author. But the latter 2 were created to correct issues in the former. There is no reason to continue using log4j (no longer under active development) on any new projects.

Also sl4j is a logging abstraction layer it is not a logging framework, it is used together with a logging framework (like logback or log4j).

[How To Ask Questions][Read before you PM me]
I agree. Here's the link:
subject: org.apache.log4j.Logger
It's not a secret anymore!