File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Struts 1 and Log4J Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 1 and Log4J" Watch "Struts 1 and Log4J" New topic

Struts 1 and Log4J

Fred Artes
Ranch Hand

Joined: Nov 14, 2008
Posts: 43

I'm using log4j for debugging in my struts 1 application

This is correct or I must define logger as static ?
Joe Ess

Joined: Oct 29, 2001
Posts: 8836

I'm not aware of any requirement to make a logger instance static. I do so, but it is out of habit as opposed to any requirement.

"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
I agree. Here's the link:
subject: Struts 1 and Log4J
Similar Threads
log4J and java.util.logging
logging runtime exceptions
Struts1.1 And Log4j
what does log4j info level mean
Unable to set classpath for log4j