title: Using log4j logging in weblogic 9/10
body: <p>In weblogic I can configure in the console for the Serverlog to use log4j instead of default JDK logging.</p>
  
  <p>However the serverlog is not using a log4j.properties file, but seems to use the configuration in config.xml
  Even if the log4j.properties file is in the classpath and I set these properties:</p>
  
  <pre><code>set JAVA_OPTIONS=%JAVA_OPTIONS% -Dlog4j.configuration=file:&lt;path&gt;/log4j.properties
  set JAVA_OPTIONS=%JAVA_OPTIONS% -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger   
  set JAVA_OPTIONS=%JAVA_OPTIONS% -Dweblogic.log.Log4jLoggingEnabled=true 
  </code></pre>
  
  <p>Is it possible to use log4j.properties configuration for Weblogic Server Logging, or can I only change the log4j configuration with java code?</p>