Scott, Ceki, & group,

> The only difference between the org.apache.log4j.FileAppender and
org.jboss.logging.appender.FileAppender is that ours will create
> missing directories in the File attribute path.

This is an enhancement that I and others on the log4j list have suggested.
Perhaps, as it is already in the public domain,
org.jboss.logging.appender.FileAppender or a suitable modification of it
might be submitted to the log4j project for inclusion in the standard
distribution?  Just a thought...

- Matt Munz

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Scott M
Stark
Sent: Thursday, July 25, 2002 2:24 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Fwd: RE: using log4J with JBoss and Cactus


This is not true. I am able to send a given category to a seperate log
using the org.apache.log4j.FileAppender. The only difference between
the org.apache.log4j.FileAppender and
org.jboss.logging.appender.FileAppender
is that ours will create missing directories in the File attribute path. If
the File he was using corresponds to a path that does not exist then our
appender would behave differently.

<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/";
debug="false">
...
  <appender name="TEST" class="org.apache.log4j.FileAppender">
    <param name="File" value="${jboss.server.home.dir}/log/tests.log"/>
    <param name="Append" value="false"/>

    <layout class="org.apache.log4j.PatternLayout">
      <param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>
    </layout>
  </appender>

  <category name="org.jboss.deployment" additivity="false">
    <priority value="DEBUG"/>
    <appender-ref ref="TEST"/>
  </category>

xxxxxxxxxxxxxxxxxxxxxxxx
Scott Stark
Chief Technology Officer
JBoss Group, LLC
xxxxxxxxxxxxxxxxxxxxxxxx
----- Original Message -----
From: "Ceki Gülcü" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 25, 2002 8:04 AM
Subject: [JBoss-user] Fwd: RE: using log4J with JBoss and Cactus


>
> Greetings,
>
> Paul Ekeland, a JBoss, Cactus as well as log4j user recently posted
> the following to the log4j-user@ mailing list. As I understand it, he
claims
> that one has to use org.jboss.logging.appender.FileAppender instead of
> org.apache.log4j.FileAppender under JBoss. Is this true? If so why is
> this? Many thanks in advance,
>





-------------------------------------------------------
This sf.net email is sponsored by: Jabber - The world's fastest growing
real-time communications platform! Don't just IM. Build it in!
http://www.jabber.com/osdn/xim
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



-------------------------------------------------------
This sf.net email is sponsored by: Jabber - The world's fastest growing 
real-time communications platform! Don't just IM. Build it in! 
http://www.jabber.com/osdn/xim
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to