logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Douglas E Wegscheid <Douglas_E_Wegsch...@whirlpool.com>
Subject RE: Dynamic File Name and Turn off File Logging
Date Wed, 20 May 2009 19:15:33 GMT
system properties are set on the Java command line with the -D switch, not 
with environment variables.

java -DLOG4J_NULL=nul .....

power97 <cjob68@shaw.ca> wrote on 05/20/2009 03:10:48 PM:

> 
> It didn't work. Any ideas , here is my code:
> 
> Windows .cmd file:
> set LOG4J_NULL=nul
> 
> log4j.properties file
> log4j.appender.LOGFILE.File=${LOG4J_NULL}

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message