• 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

Using Log4j

 
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please give me an idea of Log4j.

As far as I know it is a tool used for debugging.

Does it mean we dont have to set breakpoints when using Log4j.

What components can we debug when using Log4j for a struts2 application in Eclipse
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Log4J is a tool for logging, which may (or may not) be useful during debugging.

Like most Apache projects, Struts 2 uses Apache Commons Logging, which can use Log4J as one of its logging implementations.
 
p hasini
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Does it mean we dont have to set breakpoints when using Log4j.

What components can we debug when using Log4j for a struts2 application in Eclipse.

Please suggest a website for Log4j+struts2.
 
David Newton
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

p hasini wrote:Does it mean we dont have to set breakpoints when using Log4j.


This question makes no sense. Logging and debugging are two different things. Logging *may* be used as a debugging tool, but it has additional purposes. Breakpoints are *only* for debugging, and usually mean that the code is too hard to follow.

What components can we debug when using Log4j for a struts2 application in Eclipse.


Anything that uses either Log4J or Commons Logging.

Please suggest a website for Log4j+struts2.


There is no such website. There is a Log4J website, there is a Struts 2 website. The two have zero to do with each other. Log4J is a logging library. Most Apache projects use Apache Commons Logging, which can use Log4J as the underlying logging mechanism.

Please don't just post the same questions again--I will just cut-and-paste my answers; as it is I already repeated myself more than I prefer.
 
reply
    Bookmark Topic Watch Topic
  • New Topic