logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacob Kjome" <h...@visi.com>
Subject Re: How to find which log file the log is being written
Date Tue, 02 Jun 2009 15:13:55 GMT
While you can set it in the config file....

<log4j:configuration xmlns:log4j="http://logging.apache.org/" debug="true">

...It's somewhat pointless if, in fact, your config file is not being picked 
up in the first place for configuration.  The better way to do this is to 
modify the Java command that starts up the server and add....

java -Dlog4j.debug=true ....... MyAppServer ...........


Jake


On Tue, 2 Jun 2009 10:56:50 -0400
  Ashish Kulkarni <ashish.kulkarni13@gmail.com> wrote:
> HiHow do i set log4j.debug=true in XML configuration file
> 
> On Tue, Jun 2, 2009 at 10:55 AM, Ashish Kulkarni <
> ashish.kulkarni13@gmail.com> wrote:
> 
>> HiWhere do i set this log4j.debug =true, and where would be it print the
>> debug message
>>
>>
>> On Tue, Jun 2, 2009 at 10:09 AM, Yair Ogen <yairogen@gmail.com> wrote:
>>
>>> use log4j.debug=true
>>>
>>> On Tue, Jun 2, 2009 at 5:00 PM, Ashish Kulkarni <
>>> ashish.kulkarni13@gmail.com
>>> > wrote:
>>>
>>> > HiI have an application which is installed in clustered weblogic
>>> > environment, and for some reason i do not see any logs in the log file
>>> > specified in File section
>>> > I have defined my logger as below, i dont see any log file in my
>>> > log4jxml.xml file, but only in weblogic log file, how do i find out what
>>> is
>>> > happening with log4jxml.xml
>>> >
>>> >  <appender name="A1" class="org.apache.log4j.DailyRollingFileAppender"
>>>  >
>>> >      <param name="File" value="/myapp/logs/log4jXml.xml" />
>>> >      <param name="DatePattern" value="'.'yyyy-MM-dd" />
>>> >      <layout class="org.apache.log4j.xml.XMLLayout">
>>> >      </layout>
>>> > </appender>
>>> > <appender name="STDOUT" class="org.apache.log4j.ConsoleAppender">
>>> >      <layout class="org.apache.log4j.PatternLayout">
>>> >         <param name="ConversionPattern" value="%d %-5p [%t] %C{2}
>>> (%F:%L) -
>>> > %m%n" />
>>> >      </layout>
>>> >   </appender>
>>> >
>>> >  <root>
>>> >      <priority value="warn" />
>>> >      <appender-ref ref="A1" />
>>> >      <appender-ref ref="STDOUT" />
>>> >   </root>
>>> >
>>>
>>
>>


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message