tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <>
Subject Re: Name log files based on Context name?
Date Thu, 09 Jan 2014 19:01:49 GMT
On 09/01/2014 18:48, Jesse Barnum wrote:
> I want my log files to be written to a log file with the same name as my webapp. Users
can dynamically re-name my webapp when they run my installer, so that they can have multiple
instances running, so hard-coding the context name is not a good approach. Is there some environment
variable that I can use in the log file?
>> = FINE
>> = ${catalina.base}/logs
>> = MirrorSync.
>> = UTF-8
> I'd like the word "MirrorSync" to be replaced with the name of the context where this file is loaded from (the file is in my classes/ directory).
I tried using ${context} but it just put that literal value for the log name.
> My users are mostly running in Tomcat 6, with a few who have upgraded to 7.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message