[logback-user] Logback with Tomcat and multiple web applications

Ceki Gulcu ceki at qos.ch
Thu Feb 12 10:51:57 CET 2009


Within the include element, the filename attribute can contain variables.
See line 149, 154, and 159 in getInputStream(InterpretationContext, Attributes) 
method of in IncludeAction class:

http://logback.qos.ch/xref/ch/qos/logback/core/joran/action/IncludeAction.html


Thorbjørn Ravn Andersen wrote:
> Ryan Cornia skrev:
>>> I didn't quite understand why you needed ContextJNDISelector.
>>>
>>>     
>>
>>
>> I would like to have all web apps use the same configuration file that is
>> kept outside of the war. Maybe ContextJNDISelector isn't what is needed?
>>   
> Could you use the include functionality to get a file in the filesystem?
> 
> http://logback.qos.ch/manual/joran.html#fileInclusion
> 
> I cannot see right now, if the filename string can contain ${foo.bar} 
> replacements to put in variable information?
> 

-- 
Ceki Gülcü
Logback: The reliable, generic, fast and flexible logging framework for Java.
http://logback.qos.ch


More information about the Logback-user mailing list