File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

org.apache.log4j.Logger

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
Marshal

Joined: Jul 20, 2005
Posts: 9932
    
159

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 http://logging.apache.org/log4j/2.x/


[My Blog] [JavaRanch Journal]
Bill Gorder
Bartender

Joined: Mar 07, 2010
Posts: 1648
    
    7

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

http://logback.qos.ch/reasonsToSwitch.html
http://logback.qos.ch/
http://www.slf4j.org/

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]
 
 
subject: org.apache.log4j.Logger
 
Similar Threads
Using log4j in JSP
Bean-Managed Transaction by EJB with xDoclet?
Generics of Class Class
Help with Log4j
log level parameter?