Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

The wl.logdir variable

Posted on 2004-10-25
7
Medium Priority
?
364 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
Comment
Question by:booksplus
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 13

Expert Comment

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

Author Comment

by:booksplus
ID: 12401978
Version 6.1
0
 
LVL 13

Accepted Solution

by:
petmagdy earned 450 total points
ID: 12402089
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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

Author Comment

by:booksplus
ID: 12402683
"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
ID: 12405936
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
ID: 12414067
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
ID: 12434120
Increasing points on this (adding 100 points)
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This exercise is about for the following scenario: Dmgr and One node with 2 application server. Each application server contains it owns application. Application server name as follows server1 contains app1 server2 contains app1 Prereq…
Most of the developers using Tomcat find it easy to configure the datasource in Server.xml and use the JNDI name in the code to get the connection.  So the default connection pool using DBCP (or any other framework) is made available and the life go…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses

636 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