I believe that there should probably be a wrapper interface in the API which would allow implementors to use any logging product, and a very small set of methods say: debug(),info(),warn(),error(),setLogLevel(), available to each mailet/matcher.
I can't see any need for any other methods, can you? d. > -----Original Message----- > From: Noel J. Bergman [mailto:[EMAIL PROTECTED]] > Sent: 07 June 2002 14:54 > To: James Developers List > Subject: RE: Finer Logging Control for Mailets/Matchers > > > Fair enough. :-) So what ideas do people have with respect > specifically to > how matchers and mailets should have access to logging services? > > --- Noel > > -----Original Message----- > From: Serge Knystautas [mailto:[EMAIL PROTECTED]] > Sent: Friday, June 07, 2002 9:39 > To: James Developers List > Subject: Re: Finer Logging Control for Mailets/Matchers > > > Yes, I'm not happy with that change just yet. This requires a change to > the mailet API, which is something I want to discuss much more before > changing. We have this issue to change when we do make a new version of > the mailet API. > -- > Serge Knystautas > Loki Technologies - Unstoppable Websites > http://www.lokitech.com > > Noel J. Bergman wrote: > > Andrei, > > > > I'll be happy to do the code, but does anyone else want it, and > are people > > OK with a MailetContext.getMailetLogger() method? I'd just as soon not > > submit a change that gets bitbucketed. > > > > --- Noel > > > > -----Original Message----- > > From: Andrei A. Ivanov [mailto:[EMAIL PROTECTED]] > > Sent: Friday, June 07, 2002 9:25 > > To: James Developers List > > Subject: Re: Finer Logging Control for Mailets/Matchers > > > > Hi, > > > > > >>We could expose > >>MailetContext.getMailetLogger() > > > > > > Let's do it, the sooner the better. > > > > What about other ideas: like make it possible to specify per > mailet logger > > etc? > > > > Andrei > > > > ----- Original Message ----- > > From: "Noel J. Bergman" <[EMAIL PROTECTED]> > > To: "James Developers List" <[EMAIL PROTECTED]> > > Sent: Friday, June 07, 2002 4:04 PM > > Subject: Finer Logging Control for Mailets/Matchers > > > > > >>Andrei, > >> > >>James implements MailetContext. MailetContext provides the two log > > > > methods > > > >>available to Mailets. Those two methods use: > >> > >> getMailetLogger().info(...); > >> > >>which is a private method of James. We could expose > >>MailetContext.getMailetLogger() for matchers and mailets that want finer > >>control over the log level. > >> > >>--- Noel > > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
