• 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

[JBoss 6.0.0 M2] Logging with org.jboss.logging.Logger or org.apache.log4j.Logger ?

 
Ranch Hand
Posts: 563
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am wondering which class I should use to add logs in my web applications.

The classes org.jboss.logging.Logger and org.apache.log4j.Logger seem to have the same methods (error, fatal, info, debug ...).
I have been using the org.jboss.logging.Logger class for a long time but i am wondering how close it is to log4j.
Which one should i use ? Also, does org.jboss.logging.Logger use the log4j framework ? I presume it does.

Thanks for helping.
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Personally, I would use commons logging.

Also, could I request that you ask your question in only one forum and wait a reasonable time (2 or 3 of days) for an answer before asking in another forum? Duplication of effort gets annoying after a while.
 
Celinio Fernandes
Ranch Hand
Posts: 563
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Peter Johnson wrote:Personally, I would use commons logging.

Also, could I request that you ask your question in only one forum and wait a reasonable time (2 or 3 of days) for an answer before asking in another forum? Duplication of effort gets annoying after a while.



Sure. Sorry about that.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic