On 12/1/21 12:32 PM, Mark Thomas wrote:
On 01/12/2021 19:24, Rob Sargent wrote:
I'm using an embedded tomcat (ver9.0.54) and I don't see how to
name/redirect the output of ServletContext.log(String).
I see in the manual
This logging is performed according to the Tomcat logging
configuration. You cannot overwrite it in a web application.
I missing the "Tomcat logging config" bit, I guess.
Each web application gets its own logger and these messages are
directed there. The loggers are named along these lines:
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager]
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/examples]
Adjust as necessary for your engine name, host name and context path.
Mark
Call off the dogs: I found the logs (carefully hidden in stdout...)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org