-----Original Message-----
From: Berin Loritsch [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 12, 2003 10:11 AM
To: Avalon framework users
Subject: Re: LogKit and Log4j

Dave Castonguay wrote:
> Hi Berin, 
> Thanks for your response, but I still have some issues.
> 
> I use the following rote element in my xlog file: 
> 
> <log4j:configuration>
> </log4j:configuration>
> 
> And I have the following code:
> 
> public class AuditImpl extends AbstractLogEnabled implements Audit,
> Serviceable, Configurable, Initializable, Disposable
> {
>     . . .
>     public void commit(String msg)
>     {
>         . . . 
>         getLogger().info(msg);
>     }
>     . . .
> }

Which version of Fortress are you using?  We probably need to do a new
release with these changes.


I'm using the excalibur-fortress-complete-1.0.jar jar file. 

So I can not use logkit on top of log4j, right? 

Thanks a lot

> 
> 
> The getLogger's function returns a logger of type
> org.apache.avalon.framework.logger.LogKitLogger. But I was expected a
logger
> of type Log4JLogger. What am I missing? 
> 
> I want to use logkit on top of log4j, in order to switch to another logger
> (JDK1.4) if needed.
> 
> Daveyboy
> 
> 
> 
> 
> 
> -----Original Message-----
> From: Berin Loritsch [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, November 12, 2003 7:03 AM
> To: Avalon framework users
> Subject: Re: LogKit and Log4j
> 
> Dave Castonguay wrote:
> 
>>Hello,
>>
>>I'm using FortressConfig to load logging information. I have 2 simple
>>questions.
>>
>> 
>>
>>1-       I want to configure logkit.xlog in order to use Log4J in my
>>project, how I do that?
> 
> 
> You can point the logger configuration file anywhere.  It does not have
> to be the logkit.xlog format.  Please note that all Log4J configuration
> files have the root element:
> 
> <log4j:configuration>
> </log4j:configuration>
> 
> The FortressConfig system will realize this is a Log4J config file and
> adjust accordingly.
> 
> 
>>2-       Where can I find a full description of the format of an .xlog
> 
> file?
> 
> If you are using log4j, I would check with them.
> If you are using LogKit, the Excalibur Logger package is the place to
> look, although I don't think it is documented all in one place.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to