Solved

The wl.logdir variable

Posted on 2004-10-25
334 Views
Last Modified: 2013-12-10
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.
0
Question by:booksplus
    7 Comments
     
    LVL 13

    Expert Comment

    by:petmagdy
    which version of weblogic r u talking about?
    0
     

    Author Comment

    by:booksplus
    Version 6.1
    0
     
    LVL 13

    Accepted Solution

    by:
    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
     

    Author Comment

    by:booksplus
    "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
     
    LVL 13

    Expert Comment

    by:petmagdy
    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
     

    Author Comment

    by:booksplus
    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
     

    Author Comment

    by:booksplus
    Increasing points on this (adding 100 points)
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone. Privacy Policy Terms of Use

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Suggested Solutions

    Title # Comments Views Activity
    Where is my Java compiler located 3 1,460
    splunk tool 1 49
    immutable object concept 5 89
    Clear browser cache on site login, is it possible? 3 21
    -Xmx and -Xms are the two JVM options often used to tune JVM heap size.   Here are some common mistakes made when using them:   Assume BigApp is a java class file for the below examples. 1.         Missing m, M, g or G at the end …
    There are numerous questions about how to setup an IBM HTTP Server to be administered from WebSphere Application Server administrative console. I do hope this article will wrap things up and become a reference for this task. You need three things…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    860 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now