Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 16591 invoked from network); 5 Jan 2007 09:24:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Jan 2007 09:24:11 -0000 Received: (qmail 53090 invoked by uid 500); 5 Jan 2007 09:24:08 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 52920 invoked by uid 500); 5 Jan 2007 09:24:07 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 52909 invoked by uid 99); 5 Jan 2007 09:24:07 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Jan 2007 01:24:07 -0800 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,MIME_BOUND_NEXTPART X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [194.154.194.71] (HELO srs2na11.bgl.lu) (194.154.194.71) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 05 Jan 2007 01:23:32 -0800 Received: from spmwf02l.luinternal.fortis.bank (unverified) by srs2na12.domain (Content Technologies SMTPRS 4.2.10) with ESMTP id for ; Fri, 5 Jan 2007 10:26:35 +0100 Received: from SPMWB01L.luinternal.fortis.bank ([10.172.252.139]) by spmwf02l.luinternal.fortis.bank with Microsoft SMTPSVC(6.0.3790.0); Fri, 5 Jan 2007 10:22:36 +0100 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPartTM-000-2333920b-d252-413a-a0d9-b9d74e64a922" X-MimeOLE: Produced By Microsoft Exchange V6.5 Subject: Commons Logging - FileAppender Issue Date: Fri, 5 Jan 2007 10:22:36 +0100 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Commons Logging - FileAppender Issue Thread-Index: AccwqwnZHGd7BVZ1SSi4cwjOeMqMAQ== From: "DECAFFMEYER MATHIEU" To: X-OriginalArrivalTime: 05 Jan 2007 09:22:36.0753 (UTC) FILETIME=[09EEBC10:01C730AB] X-Virus-Checked: Checked by ClamAV on apache.org ------=_NextPartTM-000-2333920b-d252-413a-a0d9-b9d74e64a922 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C730AB.09936A01" ------_=_NextPart_001_01C730AB.09936A01 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, I'm using Log4j to manage log, I want to convert this by Commons Logging by converting just this line : private static Logger sLogger =3D Logger.getLogger(LoggingManager.class); by this one : private static Log sLogger =3D LogFactory.getLog(LoggingManager.class); This is the only thing to do, right ? Now I have a problem : logs aren't stored in files anymore. Why doesn't it store anymore since I replaced this line to use Commons Logging ? Thank u for any help. __________________________________ =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Internet communications are not secure and therefore Fortis Banque Luxembou= rg S.A. does not accept legal responsibility for the contents of this messa= ge. The information contained in this e-mail is confidential and may be leg= ally privileged. It is intended solely for the addressee. If you are not th= e intended recipient, any disclosure, copying, distribution or any action t= aken or omitted to be taken in reliance on it, is prohibited and may be unl= awful. Nothing in the message is capable or intended to create any legally = binding obligations on either party and it is not intended to provide legal= advice. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ------_=_NextPart_001_01C730AB.09936A01 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Commons Logging - FileAppender Issue

Hi,

I'm using Log4j to manage log, I want to c= onvert this by Commons Logging by
converting just this line :
private= static Logge= r sLogger =3D Logger.getLogger(LoggingManager.class);
by this one :
private static Log sLogger =3D LogFactory.getLog(LoggingManager.class);
This is the only thing to do, right ?
Now I have a problem : logs aren't stored in files anymore.
Why doesn't it store anymore since I replaced this line to use Commons = Logging ?

Thank u for any help.

<?xml version=3D"1.0" encoding=3D"UTF-8" ?>
<!DOCTY= PE log4j:confi= guration SYSTE= M "log4j.= dtd"><= /FONT>
<log4j:= configuration = xmlns:log4j=3D= "http://jakarta.apache.org/log4j/&= quot;>
     <appender =3D"fileAppender&= quot;
            = ;   = class=3D"org.apache.log= 4j.DailyRollingFileAppender">
          <param name=3D"DatePattern" value=3D&qu= ot;'.'yyyy-MM-dd-HH"/>
          <param name=3D"File" value= =3D"C:/Us= erTemp/matthew016/app.log"/>
          <layout class=3D"org.apache.log4j.PatternLayout">
            = ;   = <param name=3D"ConversionPattern"
            = ;          value=3D"%d{ISO8601} %-5p [%-30.30c{2}] %m%n"/>
          </layout>
     </appender     <appender =3D"consoleAppend= er"
            = ;   = class=3D"org.apache.log= 4j.ConsoleAppender">
          <layout class=3D"org.apache.log4j.PatternLayout">
            = ;   = <param name=3D"ConversionPattern"
            = ;          value=3D"%-5p %c{1} - %m%n" />
          </layout>
     </appender  <= ;root>
    <p= riority value<= /FONT> =3D"info" <= FONT COLOR=3D"#008080" SIZE=3D2 FACE=3D"Courier New">/>

    <a= ppender-ref re= f=3D"fileAppender"=
/><= /SPAN>
    <a= ppender-ref re= f=3D"consoleAppender&qu= ot;
/>

  <= ;/root<= FONT COLOR=3D"#008080" SIZE=3D2 FACE=3D"Courier New">>

</log4j= :configuration= >

<= WBR>__________________________________




=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Internet communications are not secure and therefore Fortis Banque Luxembou= rg S.A. does not accept legal responsibility for the contents of this messa= ge. The information contained in this e-mail is confidential and may be leg= ally privileged. It is intended solely for the addressee. If you are not th= e intended recipient, any disclosure, copying, distribution or any action t= aken or omitted to be taken in reliance on it, is prohibited and may be unl= awful. Nothing in the message is capable or intended to create any legally = binding obligations on either party and it is not intended to provide legal= advice.
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
------_=_NextPart_001_01C730AB.09936A01-- ------=_NextPartTM-000-2333920b-d252-413a-a0d9-b9d74e64a922 Content-Type: text/plain; charset=us-ascii --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org ------=_NextPartTM-000-2333920b-d252-413a-a0d9-b9d74e64a922--