You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Reshat Sabiq <cr...@argushealth.com> on 2007/01/16 00:12:39 UTC

Is there a way to reference and env. variable from log4j.xml?

I'd like to do smt. like:
%LOG_ROOT%/myLog.log


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Re: Is there a way to reference and env. variable from log4j.xml?

Posted by James Stauffer <st...@gmail.com>.
Can you change the command line? You could add "-Dlog_root=%log_root%"
to copy it to a system property, which should be accessible.

On 1/15/07, Reshat Sabiq <cr...@argushealth.com> wrote:
> I'd like to do smt. like:
> %LOG_ROOT%/myLog.log
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>


-- 
James Stauffer        http://www.geocities.com/stauffer_james/
Are you good? Take the test at http://www.livingwaters.com/good/

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org