[
https://issues.apache.org/jira/browse/MAILET-33?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12984650#action_12984650
]
Stefano Bagnara commented on MAILET-33:
---------------------------------------
It is interesting to see they do not use String.format but their own format for
performance reasons. I don't want mailet api to introduce a new format and if
String.format is not so performant maybe we should simply go with methods
suggested by Norman.
Do we want to publish the "boolean isLogEnabled(LogLevel l)" api ?
Also, I prefer to have
void log(LogLevel level, String message);
instead of the committed:
void log(String message, LogLevel level);
Hope you don't see problems with this.
> MailetContext should provide a log method which allow to specify the loglevel
> -----------------------------------------------------------------------------
>
> Key: MAILET-33
> URL: https://issues.apache.org/jira/browse/MAILET-33
> Project: Mailet
> Issue Type: Improvement
> Components: Core API
> Affects Versions: 2.4
> Reporter: Norman Maurer
> Assignee: Norman Maurer
> Fix For: 2.5
>
>
> Currently MailetContext.log(..) does not allow to specify the loglevel to use
> for logging. We should mark this method as @deprecated and add a new one
> which takes a logging level argument.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.