Re: Application name in log record

2022-01-10 Thread Makarov Alexey
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.serviceNa

Re: Application name in log record

2022-01-10 Thread Makarov Alexey
cation 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.serviceN

Re: Application name in log record

2022-01-10 Thread Makarov Alexey
more 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

Application name in log record

2022-01-09 Thread Makarov Alexey
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