[prev in list] [next in list] [prev in thread] [next in thread] 

List:       james-user
Subject:    RE: User-Log
From:       "Steve Short" <sshort () postx ! com>
Date:       2003-01-31 17:59:39
[Download RAW message or body]

Having thought about this for all of 2 minutes, I would probably just use Log4j directly in your SenderLog mailet.  In fact, I'd probably go one step further and find the Phoenix (or Excalibur) patch that enables Phoenix to use Log4j.

I'll still knock up the example anyway because it might grow into some kind of useful tracking facility.

Steve

> -----Original Message-----
> From: Scherer Pierre [mailto:scherer_pierre@ibelgique.com] 
> Sent: Friday, January 31, 2003 7:33 AM
> To: James Users List
> Subject: RE: User-Log
> 
> 
> I try to find what code I must change but it's realy 
> difficult because the code of James and Avalon is very very important.
> 
> Someone can help me to identify where I must write my 
> Logger/appender and explain what I must change in 
> configuration files!!!
> 
> Thanks a lot for your futur anwser!!!
> 
> -Pierre
> 
> 
> 
> -----Message d'origine-----
> De : Noel J. Bergman [mailto:noel@devtech.com]
> Envoyé : vendredi 31 janvier 2003 02:56
> À : James Users List
> Objet : RE: User-Log
> 
> 
> Steve,
> 
> Do you have some time to write this up, with an example?
> 
> -----Original Message-----
> From: Steve Short [mailto:sshort@postx.com]
> Sent: Thursday, January 30, 2003 14:06
> To: James Users List
> Subject: RE: User-Log
> 
> If you need to do this with the current version of James you 
> can create a new SenderLog Component (at the Avalon level). 
> The SenderLog Component can be have it's own configuration 
> category name and logging level. Then your mailet could 
> simply lookup the SenderLog Component at runtime and use this 
> to do the actual logging.
> 
> It's kind of messy to add a new Component because you need to 
> change james.xinfo as well as the assembly configuration file 
> and rebuild James, but it's definitely doable.
> 
> Steve
> 
> > -----Original Message-----
> > From: Noel J. Bergman [mailto:noel@devtech.com]
> > Sent: Thursday, January 30, 2003 9:58 AM
> > To: James Users List
> > Subject: RE: User-Log
> >
> >
> > > In fact, I don't understand the process that matches maillet name 
> > > and declaration in the XML file James-server
> >
> > James uses Avalon logging.  Mailets, however, do not have 
> fine grained 
> > logging support in James v2.  Better logging is proposed 
> for James v3, 
> > with a revision of the Mailet API.
> >
> > There are things that you could do to work around it, if necessary. 
> > Basically, roll your own logging, or make some changes to 
> access the 
> > underlying Avalon infrastructure.
> >
> > 	--- Noel
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: james-user-help@jakarta.apache.org
> 
> _____________________________________________________________________
> Envie de discuter en "live" avec vos amis ? Télécharger MSN 
> Messenger http://www.ifrance.com/_reloc/m la 1ère messagerie 
> instantanée de France
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: james-user-help@jakarta.apache.org
> 
> 

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic