• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using Log4j

 
p hasini
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • 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
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • 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
  • 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
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic