Hi,

I have checked out how to configure logback for Tomcat webapps (as described in http://logback.qos.ch/manual/contextSelector.html).

At one point, one configures the name of the XML config file, like so:

<env-entry>
<description>URL for configuring logback context</description>
<env-entry-name>logback/configuration-resource</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>logback-app-A.xml</env-entry-value>
</env-entry>


Unfortunately, the manual suggests (and code inspection confirms) that the XML config file is indeed always a resource on the classpath, never a file on the filesystem.

This means the nifty "scan" facility cannot be used in the webapp, as scanning a classpath resource is not exactly fruitful.

Before I start adding some code, is there some known way to make the webapp aware of changing XML config files?

-- David


_______________________________________________
Logback-user mailing list
Logback-user@qos.ch
http://mailman.qos.ch/mailman/listinfo/logback-user

Reply via email to