tags:

views:

121

answers:

2

Does log4j support properties files includes - like commons configuration - so I could include one file from another, overriding properties as appropriate?

I have tried doing it, and it doesn't seem to work. Is there an alternate way to achieve the same reuse?

A: 

No, it doesn't. All configuration must go into a single log4j.properties or log4j.xml file.

skaffman
Thought as much.
Joel
A: 

You can use XML entity expansion as an include mechanism in log4j.xml.

Miguel Pardal