Christian Jensen wrote:
Hello,
I have a class that is being used in a Mailet. How do I add logging to
that class? I would like the ability to specify debug vs info logging
and have it go into a file.
Thanks!
Christian
Unfortunately we don't currently have support for different log levels
in mailet apis.
In mailets you have a "log" method that you can use to log something.
In 2.3.0 all the mailets will log in the same logfile. In trunk we added
an option to allow a different logfile for each mailet or any other fine
grained operations.
Loglevels are in our roadmap, but I don't think they will be included in
the next release of james because it needs a change in the API and we
probably won't brake api compatibility before a couple of versions (but
stay tuned for final words/updates on this).
Stefano
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]