]> git.mxchange.org Git - jcoreee.git/commitdiff
log also class name
authorRoland Häder <roland@mxchange.org>
Mon, 29 Aug 2016 10:57:25 +0000 (12:57 +0200)
committerRoland Häder <roland@mxchange.org>
Mon, 29 Aug 2016 10:57:25 +0000 (12:57 +0200)
src/org/mxchange/jcoreee/database/BaseDatabaseBean.java

index 942f30f2def80b2060a3bc73e9db872fda1c16d1..07e54ae2a5224b37b75d68c29bcfb639da4669ec 100644 (file)
@@ -97,7 +97,7 @@ public abstract class BaseDatabaseBean implements Serializable {
         */
        protected void sendMessage (final ObjectMessage message, final MessageProducer messageProducer) throws JMSException {
                // Trace message
-               this.getLoggerBeanLocal().logTrace(MessageFormat.format("sendMessage: message={0},messageProducer={1} - CALLED!", message, messageProducer)); //NOI18N
+               this.getLoggerBeanLocal().logTrace(MessageFormat.format("{0}.sendMessage: message={1},messageProducer={2} - CALLED!", this.getClass().getSimpleName(), message, messageProducer)); //NOI18N
 
                // The parameter should be valid
                if (null == message) {
@@ -112,7 +112,7 @@ public abstract class BaseDatabaseBean implements Serializable {
                messageProducer.send(message);
 
                // Trace message
-               this.getLoggerBeanLocal().logTrace("sendMessage: EXIT!"); //NOI18N
+               this.getLoggerBeanLocal().logTrace(MessageFormat.format("{0}.sendMessage: EXIT!", this.getClass().getSimpleName())); //NOI18N
        }
 
 }