• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Logger in web.xml

 
Kerry Wilson
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Would like to know how to declare a logger in the web.xml, if it is possible.

Thanks
 
Sekhar Kadiyala
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic