The first thing to do is to turn off production mode:
set PRODUCTION_MODE=false... this is a ‘global’ variable, which sets the following four variables:
set debugFlag=true set testConsoleFlag=true set iterativeDevFlag=true set logErrorsToConsoleFlag=trueThe next step is to define the location of your ‘log4j.properties’ file.
set LOG4J_CONFIG_FILE=%DOMAIN_HOME%/config/log4j/log4j.properties if NOT "%LOG4J_CONFIG_FILE%"=="" ( set JAVA_PROPERTIES=%JAVA_PROPERTIES% -Dlog4j.configuration=file:%LOG4J_CONFIG_FILE% )Weblogic also needs to know where to find the log4j jar file by adding it to the EXT_PRE_CLASSPATH:
set %EXT_POST_CLASSPATH%=%DOMAIN_HOME%/lib/log4j-1.2.9.jarThis small config file change has been tested on BEA's Weblogic 6 right up to Oracle's Weblogic 11g (10.3.2).
There are many other ad-hoc changes you can make to this file; this blog has just outlined one of those.
No comments:
Post a comment