Thanks, Mark!I'll keep it on mind.
11.01.2022 12:43, Mark Thomas пишет:
On 10/01/2022 13:20, Makarov Alexey wrote:
Thank you, but this properties is not work or something wrong. I get
"${classloader.webappName}", "${classloader.hostName}", or
"${classloader.serv
on logging.properties ?
10.01.2022 15:27, Mark Thomas пишет:
I went to look at the source code and found something I'd completely
forgotten about. Tomcat exposes several properties that you can use in
logging.properties. They are:
classloader.webappName
classloader.hostName
classloader.ser
re complex deployment you might want to preface it
with ServletContext.getVirtualServerName()
Mark
On 10/01/2022 05:00, Makarov Alexey wrote:
Hello! I want to print application name in my log files. As I know, I
must implemet custom log formatter. How I can get application
format(LogRecord record) {
String webappName = ...;
return String.format("%s/n", webappName); // only application
name for testing
}
}
I use Tomcat 9.0.
--
WIth best regards,
Makarov Alexey
-
To unsu