Groups > Weblogic > WebLogic environment > Re: How can I use a weblogic server's root path in an XML?




Re: How can I use a weblogic server's root path in an XML?

Re: How can I use a weblogic server's root path in an XML?
Tue, 23 Oct 2007 15:30:09 -070
By the way, here's the XML:

[pre]<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">

<log4j:configuration
xmlns:log4j="http://jakarta.apache.org/log4j/">
  <appender name="mibLogFile"
class="org.apache.log4j.DailyRollingFileAppender"> 
    &lt;param name="File" value="mib_application.log"
/>
    &lt;param name="DatePattern"
value=".yyyy_MM_dd"/>
    &lt;param name="Append" value="true"/>
    <layout class="org.apache.log4j.PatternLayout">
      &lt;param name="ConversionPattern" value="%d{MM/dd/yyyy
HH:mm:ss} [%t] %c %x%n  %-5p %m%n"/>
    </layout>
  </appender>

  <root>
    <level value="info"/>
    <appender-ref ref="mibLogFile"/>
  </root>

</log4j:configuration>
[/pre]

I tried using "$WL_ROOT/logs/" at the start of the file name, thinking
that $WL_ROOT would work for the env variable for the server root path. But it
doesn't exist, and I don't think I'll have access on the deployment server to
add any environment variables, so I was hoping to use something native t
Post Reply
about | contact