synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject svn commit: r581144 - in /webservices/synapse/trunk/java/modules/core/src/main: java/org/apache/synapse/mediators/AbstractMediator.java resources/log4j.properties
Date Tue, 02 Oct 2007 06:08:20 GMT
Author: ruwan
Date: Mon Oct  1 23:08:19 2007
New Revision: 581144

URL: http://svn.apache.org/viewvc?rev=581144&view=rev
Log:
Fixing a loggin issue with mediators

Modified:
    webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/mediators/AbstractMediator.java
    webservices/synapse/trunk/java/modules/core/src/main/resources/log4j.properties

Modified: webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/mediators/AbstractMediator.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/mediators/AbstractMediator.java?rev=581144&r1=581143&r2=581144&view=diff
==============================================================================
--- webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/mediators/AbstractMediator.java
(original)
+++ webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/mediators/AbstractMediator.java
Mon Oct  1 23:08:19 2007
@@ -161,7 +161,7 @@
      * @param msgContext the message context
      */
     protected void auditLog(String msg, MessageContext msgContext) {
-        log.info(msg);
+        LogFactory.getLog(this.getClass()).info(msg);
         if (msgContext.getServiceLog() != null) {
             msgContext.getServiceLog().info(msg);
         }
@@ -177,7 +177,7 @@
      * @param msgContext the message context
      */
     protected void handleException(String msg, MessageContext msgContext) {
-        log.error(msg);
+        LogFactory.getLog(this.getClass()).error(msg);
         if (msgContext.getServiceLog() != null) {
             msgContext.getServiceLog().error(msg);
         }
@@ -193,7 +193,7 @@
      * @param msgContext message context
      */
     protected void auditWarn(String msg, MessageContext msgContext) {
-        log.warn(msg);
+        LogFactory.getLog(this.getClass()).warn(msg);
         if (msgContext.getServiceLog() != null) {
             msgContext.getServiceLog().warn(msg);
         }
@@ -210,7 +210,7 @@
      * @param msgContext the message context
      */
     protected void handleException(String msg, Exception e, MessageContext msgContext) {
-        log.error(msg, e);
+        LogFactory.getLog(this.getClass()).error(msg, e);
         if (msgContext.getServiceLog() != null) {
             msgContext.getServiceLog().error(msg, e);
         }

Modified: webservices/synapse/trunk/java/modules/core/src/main/resources/log4j.properties
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/core/src/main/resources/log4j.properties?rev=581144&r1=581143&r2=581144&view=diff
==============================================================================
--- webservices/synapse/trunk/java/modules/core/src/main/resources/log4j.properties (original)
+++ webservices/synapse/trunk/java/modules/core/src/main/resources/log4j.properties Mon Oct
 1 23:08:19 2007
@@ -37,7 +37,7 @@
 # The console appender is used to display general information at console
 log4j.appender.CONSOLE_APPENDER=org.apache.log4j.ConsoleAppender
 log4j.appender.CONSOLE_APPENDER.layout=org.apache.log4j.PatternLayout
-log4j.appender.CONSOLE_APPENDER.layout.ConversionPattern=%d{ISO8601} [%X{ip}-%X{host}] [%t]
%5p %C{1} %m%n
+log4j.appender.CONSOLE_APPENDER.layout.ConversionPattern=%d{ISO8601} [%X{ip}-%X{host}] [%t]
%5p %c{1} %m%n
 
 # Configure the service logger at INFO level. Writes only run-time/mediation-time audit messages
 log4j.category.SERVICE_LOGGER=INFO, SERVICE_APPENDER
@@ -47,7 +47,7 @@
 log4j.appender.SERVICE_APPENDER.MaxFileSize=1000KB
 log4j.appender.SERVICE_APPENDER.MaxBackupIndex=10
 log4j.appender.SERVICE_APPENDER.layout=org.apache.log4j.PatternLayout
-log4j.appender.SERVICE_APPENDER.layout.ConversionPattern=%d{ISO8601} [%X{ip}-%X{host}] [%t]
%5p %C{1} %m%n
+log4j.appender.SERVICE_APPENDER.layout.ConversionPattern=%d{ISO8601} [%X{ip}-%X{host}] [%t]
%5p %c{1} %m%n
 
 # The trace logger dumps enough information @INFO level, but maybe pushed upto TRACE.
 # Writes only run-time/mediation time tracing/debug messages for messages passing through
trace
@@ -58,7 +58,7 @@
 log4j.appender.TRACE_APPENDER.File=logs/trace.log
 log4j.appender.TRACE_APPENDER.Append=true
 log4j.appender.TRACE_APPENDER.layout=org.apache.log4j.PatternLayout
-log4j.appender.TRACE_APPENDER.layout.ConversionPattern=%d{HH:mm:ss,SSS} [%X{ip}-%X{host}]
[%t] %5p %C{1} %m%n
+log4j.appender.TRACE_APPENDER.layout.ConversionPattern=%d{HH:mm:ss,SSS} [%X{ip}-%X{host}]
[%t] %5p %c{1} %m%n
 
 # The standard log file that may be set upto DEBUG/TRACE for general purpose logging
 # Logs information at startup/initialization etc. and also could be used as the developer
log
@@ -67,4 +67,4 @@
 log4j.appender.LOG_APPENDER.MaxFileSize=1000KB
 log4j.appender.LOG_APPENDER.MaxBackupIndex=10
 log4j.appender.LOG_APPENDER.layout=org.apache.log4j.PatternLayout
-log4j.appender.LOG_APPENDER.layout.ConversionPattern=%d{ISO8601} [%X{ip}-%X{host}] [%t] %5p
%C{1} %m%n
+log4j.appender.LOG_APPENDER.layout.ConversionPattern=%d{ISO8601} [%X{ip}-%X{host}] [%t] %5p
%c{1} %m%n



---------------------------------------------------------------------
To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-dev-help@ws.apache.org


Mime
View raw message