• Post Reply Bookmark Topic Watch Topic
  • New Topic

Logger in web.xml  RSS feed

 
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
 
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!
 
sunglasses are a type of coolness prosthetic. Check out the sunglasses on this tiny ad:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!