• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

org.apache.log4j.Logger

 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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/
 
Bartender
Posts: 1682
7
Android Mac OS X IntelliJ IDE Spring Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).
 
reply
    Bookmark Topic Watch Topic
  • New Topic