aspose file tools*
The moose likes Other Open Source Projects and the fly likes Using Log4j Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Using Log4j" Watch "Using Log4j" New topic
Author

Using Log4j

p hasini
Ranch Hand

Joined: Oct 24, 2009
Posts: 92
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

Joined: Sep 29, 2008
Posts: 12617

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

Joined: Oct 24, 2009
Posts: 92
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

Joined: Sep 29, 2008
Posts: 12617

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.
 
Consider Paul's rocket mass heater.
 
subject: Using Log4j