aspose file tools*
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 Spring in Action this week in the Spring 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
 
Don't get me started about those stupid light bulbs.
 
subject: Logger in web.xml