File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

org.apache.log4j.Logger

 
Rakesh Basani
Ranch Hand
Posts: 38
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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/
 
Bill Gorder
Bartender
Posts: 1682
7
Android IntelliJ IDE Linux Mac OS X Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic