The only workaround I can think of is to subclass FileAppender, give
it a setter method called setSystemPropertyDirPrefix, then in
log4j.properties refrain from File=${user.home}.  Instead, I'd use
SystemPropertyDirPrefix=user.home (no variable) and within the coded
FileAppender subclass do the System.getProperty() lookup.


Tricky. One other suggestion is to at startup create a new System Property variable (before log4j starts, say 'log4config.user.home') that is based on the value of ${user.home} and do the 'unescaping' by changing '\'->'/' (if on Windows?). Java has now long supported '/' as a valid path on all platforms, so "C:/Documents and Settings/ username" works fine.

cheers,

Paul

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to