Forums Register Login

Logger in web.xml

+Pie Number of slices to send: Send
Would like to know how to declare a logger in the web.xml, if it is possible.

Thanks
+Pie Number of slices to send: Send
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!
I've got no option but to sell you all for scientific experiments. Or a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 613 times.
Similar Threads
Help Please -log4j:WARN No appenders could be found for logger
final instance variable
File Not Found Exception
Tracking users and user security
Logging
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 06:44:56.