org.apache.synapse.aspects.statistics
Class ErrorLogFactory

java.lang.Object
  extended by org.apache.synapse.aspects.statistics.ErrorLogFactory

public class ErrorLogFactory
extends Object

Creates ErrorLogs


Constructor Summary
ErrorLogFactory()
           
 
Method Summary
static ErrorLog createErrorLog(MessageContext synCtx)
          Create an ErrorLog from the information in the synapse MessageContext By default only the error code is logged and if the 'synapse.detailederrorlogging.enable' has been set, then the error message, details and exception are also logged
static ErrorLog createErrorLog(MessageContext axisCtx)
          Create an ErrorLog from the information in the Axis2 MessageContext By default only the error code is logged and if the 'synapse.detailederrorlogging.enable' has been set, then the error message, details and exception are also logged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ErrorLogFactory

public ErrorLogFactory()
Method Detail

createErrorLog

public static ErrorLog createErrorLog(MessageContext synCtx)
Create an ErrorLog from the information in the synapse MessageContext By default only the error code is logged and if the 'synapse.detailederrorlogging.enable' has been set, then the error message, details and exception are also logged

Parameters:
synCtx - MessageContext instance
Returns:
ErrorLog instance

createErrorLog

public static ErrorLog createErrorLog(MessageContext axisCtx)
Create an ErrorLog from the information in the Axis2 MessageContext By default only the error code is logged and if the 'synapse.detailederrorlogging.enable' has been set, then the error message, details and exception are also logged

Parameters:
axisCtx - Axis2 MessageContext instance
Returns:
ErrorLog instance


Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.