wood burning stoves 2.0*
The moose likes Servlets and the fly likes Logger in web.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Logger in web.xml" Watch "Logger in web.xml" New topic
Author

Logger in web.xml

Kerry Wilson
Ranch Hand

Joined: Oct 29, 2003
Posts: 254
Would like to know how to declare a logger in the web.xml, if it is possible.

Thanks


http://www.goodercode.com
SCJP 1.4
Sekhar Kadiyala
Ranch Hand

Joined: Feb 17, 2004
Posts: 170
Logging facility can't be declared in application specific web.xml

However at container level, we can do that For example, in Tomcat, in server.xml you can specify

<Logger className="org.apache.catalina.logger.FileLogger"
directory="logs" prefix="localhost_log." suffix=".txt"
timestamp="true"/>

something like this!


PMP CSQA SCJP SCWCD SCBCD INS 21 INS 23
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Logger in web.xml
 
Similar Threads
Help Please -log4j:WARN No appenders could be found for logger
Tracking users and user security
File Not Found Exception
Logging
final instance variable