The wl.logdir variable

What is the wl.logdir variable and where does it normally get set.  For example, it can be used in a log4j xml config file, but where does it
get set?

Example of how it gets used
<log4j:configuration xmlns:log4j='http://jakarta.apache.org/log4j/'>

  <appender name="file" class="org.apache.log4j.RollingFileAppender">
    <param name="File" value="${wl.logdir}/apps/app.${weblogic.Name}.log"/>
...

But where does it get set.
booksplusAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

petmagdyCommented:
which version of weblogic r u talking about?
0
booksplusAuthor Commented:
Version 6.1
0
petmagdyCommented:
the log configuration is not using any wl.logdir property, its under ur domain u created to deploy ur applications something like this:
D:\bea\user_projects\domains\myDomain\myDomain.log
or
D:\bea\user_projects\domains\myDomain\myserver\myserver.log

to overwrite these defaults u do this using config.xml found in D:\bea\user_projects\domains\myDomain
refer to this URL:
http://e-docs.bea.com/wls/docs61/config_xml/mbeans.html#286699 
for the log configuration attributes

Also u can't use this file in Lo4J because the file will be logged by Weblogic Process and it is rotational
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

booksplusAuthor Commented:
"Also u can't use this file in Lo4J because the file will be logged by Weblogic Process and it is rotational"   -- not sure
what you mean here.  This variable is actually being used in our log4j.xml, but it's not clear to me where the variable gets set.  If
I understand you, it gets set in the config.xml file??
0
petmagdyCommented:
sorry correction I understood the question wrongly, please try this:

1- search for the apps directory inside bea home directory and if found like that for example "c:\bea\weblogic61\domain\myserver\apps" then do step 2

2- modify the configuration like this:
<log4j:configuration xmlns:log4j='http://jakarta.apache.org/log4j/'>

      <property name="wl.logdir" value="c:\bea\weblogic61\domain\myserver" />
  <appender name="file" class="org.apache.log4j.RollingFileAppender">
    <param name="File" value="${wl.logdir}/apps/app.${weblogic.Name}.log"/>


0
booksplusAuthor Commented:
I think we are missing eachother's meanings --  

wl.logdir gets used inside the  log4j.xml file

"<log4j:configuration xmlns:log4j='http://jakarta.apache.org/log4j/'>
  <appender name="file" class="org.apache.log4j.RollingFileAppender">
    <param name="File" value="${wl.logdir}/apps/app.${weblogic.Name}.log"/>

..."

wl.logdir needs to be set somewhere so that it works for all apps on a server.  What file
does it get set in (config.xml?? or some other file)??
0
booksplusAuthor Commented:
Increasing points on this (adding 100 points)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java App Servers

From novice to tech pro — start learning today.