From: Roland Häder Date: Sun, 9 Jul 2017 10:50:14 +0000 (+0200) Subject: Please cherry-pick: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1b53d17966a5eb3428180616b22077cc35b80285;p=pizzaservice-mailer-ejb.git Please cherry-pick: - also log class' name Signed-off-by: Roland Häder --- diff --git a/src/java/org/mxchange/pizzaapplication/model/mailer/PizzaMailerSingletonBean.java b/src/java/org/mxchange/pizzaapplication/model/mailer/PizzaMailerSingletonBean.java index 8975449..f1ede7e 100644 --- a/src/java/org/mxchange/pizzaapplication/model/mailer/PizzaMailerSingletonBean.java +++ b/src/java/org/mxchange/pizzaapplication/model/mailer/PizzaMailerSingletonBean.java @@ -106,7 +106,7 @@ public class PizzaMailerSingletonBean extends BaseMailerBean implements Delivera @Override public void sendDeliverableMail (final WrapableEmailDelivery emailWrapper) throws MessagingException { // Log trace message - this.getLoggerBeanLocal().logTrace(MessageFormat.format("sendDeliverableMail: emailWrapper={0} - CALLED!", emailWrapper)); //NOI18N + this.getLoggerBeanLocal().logTrace(MessageFormat.format("{0}.sendDeliverableMail: emailWrapper={1} - CALLED!", this.getClass().getSimpleName(), emailWrapper)); //NOI18N // The parameter must be valid if (null == emailWrapper) { @@ -167,7 +167,7 @@ public class PizzaMailerSingletonBean extends BaseMailerBean implements Delivera this.deliverMailWithTemplate(template, context, emailWrapper, this.mailSession); // Trace message - this.getLoggerBeanLocal().logTrace("sendDeliverableMail: EXIT!"); //NOI18N + this.getLoggerBeanLocal().logTrace(MessageFormat.format("{0}.sendDeliverableMail: EXIT!", this.getClass().getSimpleName())); //NOI18N } }