logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James A. N. Stauffer" <stauffer.ja...@gmail.com>
Subject Re: RollingFileAppender broken
Date Fri, 28 Mar 2008 03:09:56 GMT
Try using forward slashes and setting debug to true.

On Thu, Mar 27, 2008 at 3:07 PM, Eric Hamacher
<eric.hamacher@enetrix.com> wrote:
> Hello:
>
>  I cannot get my log4j to log to a file. It will log to the console.
>  Below is my log4j.xml. Any ideas? Thanks.
>
>
>  <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"
>  debug="false">
>
>  <appender name="FILE" class="org.apache.log4j.RollingFileAppender">
>  <param name="File" value="c:\log\A3.log"/>
>  <param name="Append" value="true"/>
>
>  <layout class="org.apache.log4j.PatternLayout">
>
>  <param name="ConversionPattern" value="%d{dd MMM yyyy HH:mm:ss} -
>  [%C.%M] - %p - %m%n"/>
>
>  </layout>
>  </appender>
>
>  <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
>  <param name="Target" value="System.err"/>
>  <param name="Threshold" value="DEBUG"/>
>
>  <layout class="org.apache.log4j.PatternLayout">
>  <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/>
>  </layout>
>  </appender>
>
>  <category name="com.enetrix.sis">
>  <priority value="DEBUG"/>
>  <appender-ref ref="FILE"/>
>  <appender-ref ref="CONSOLE"/>
>  </category>
>
>  </log4j:configuration>
>
>
>
>  Regards,
>
>  Eric Hamacher
>
>
>
>  ******************************
>
>  THIS EMAIL IS INTENDED ONLY FOR THE REVIEW OF THE ADDRESSEE(S), AND MAY
>  CONTAIN CONFIDENTIAL AND LEGALLY PRIVILEGED INFORMATION. INTERCEPTION,
>  COPYING, DISSEMINATION, OR OTHER USE BY OTHER THAN THE ADDRESSEE(S) IS
>  PROHIBITED AND MAY BE PENALIZED UNDER APPLICABLE PRIVACY LAWS. IF YOU
>  RECEIVED THIS EMAIL IN ERROR, PLEASE DELETE IT AND NOTIFY ME BY RETURN
>  EMAIL TO eric.hamacher@enetrix.com *******************************
>
>
>
>



-- 
James A. N. Stauffer http://www.geocities.com/stauffer_james/
Are you good? Take the test at http://www.livingwaters.com/good/

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