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:[EMAIL PROTECTED]] 
> 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:[EMAIL PROTECTED]]
> 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:[EMAIL PROTECTED]]
> 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:[EMAIL PROTECTED]]
> > 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> _____________________________________________________________________
> 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: [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