File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Logging Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Logging " Watch "Logging " New topic


ramesh kothakonda
Ranch Hand

Joined: Feb 14, 2006
Posts: 40
I am using log4j for logging in my struts application.
I kept following lines in my file.
But i am getting the warning message in the console like

log4j:WARN No appenders could be found for logger (org.apache.catalina.session.ManagerBase).

log4j:WARN Please initialize the log4j system properly.

please give me the solution

log4j.rootLogger=DEBUG, A1

log4j.appender.A1.layout.ConversionPattern=[%5p] %d{mm:ss} (%F:%M:%L)%n%m%n%n

The object oriented way of becoming "RICH" is by INHERITANCE<br />Whoever said money can't buy happiness, didn't know where to shop.
Jan Groth
Ranch Hand

Joined: Feb 03, 2004
Posts: 456
the configuration file itself cannot be found. you can either put it in the classpath, or name its location as a vm-argument, i think its


google is your friend ;-)

I agree. Here's the link:
subject: Logging
It's not a secret anymore!