Hi

We're successfully invoking log4j from ColdFusion using createObject. We've
built the required XML config file for log4j and CF is now writing data to the
log4j logs (provided that they're simple, non-rolling text files).

I'd like to set the location of the log4j log file dynamically using a
variable from within ColdFusion. Log4j currently gets the log file's directory
from an attribute within its own XML config file. The value of the directory
attribute can be set dynamically, but only retrieves Java variables.

Is there a simple way to use CF to create a system variable (or other
persistent variable) in Java that would be accessible to log4j's config file
using the ${myLogFileDirectory} type of syntax?

Thanks.