Changes since
the last release

com.ebay.sdk
Class ApiLogging

java.lang.Object
  extended by com.ebay.sdk.ApiLogging

public class ApiLogging
extends java.lang.Object

Contains properties to control SDK logging.

Title:

Description:

Copyright: Copyright (c) 2004

Company: eBay Inc.

Version:
1.0
Author:
Weijun Li

Constructor Summary
ApiLogging()
          Constructor.
 
Method Summary
 ExceptionFilter getMessageLoggingFilter()
          Get the message logging filter.
 boolean isLogExceptions()
          Get LogExceptions property.
 boolean isLogHTTPHeaders()
          Get LogHTTPHeaders property.
 boolean isLogSOAPMessages()
          Get LogSOAPMessages property.
 void setLogExceptions(boolean logExceptions)
          Set to true to enable logging of all exceptions if logging is enabled (setEnableLogging(true)).
 void setLogHTTPHeaders(boolean logHTTPHeaders)
          Set to true to enable logging of all HTTP request/response headers if logging is enabled(setEnableLogging(true)).
 void setLogSOAPMessages(boolean logSOAPMessages)
          Set to true to enable logging of SOAP request and response messages if logging is enabled (setEnableLogging(true)).
 void setMessageLoggingFilter(ExceptionFilter messageLoggingFilter)
          Set the message logging filter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApiLogging

public ApiLogging()
Constructor.

Method Detail

setLogExceptions

public void setLogExceptions(boolean logExceptions)
Set to true to enable logging of all exceptions if logging is enabled (setEnableLogging(true)).

Parameters:
logExceptions - boolean

isLogExceptions

public boolean isLogExceptions()
Get LogExceptions property.

Returns:
true means logging of exception is turned on.

setLogSOAPMessages

public void setLogSOAPMessages(boolean logSOAPMessages)
Set to true to enable logging of SOAP request and response messages if logging is enabled (setEnableLogging(true)).

Parameters:
logSOAPMessages - boolean

isLogSOAPMessages

public boolean isLogSOAPMessages()
Get LogSOAPMessages property.

Returns:
true means logging of SOAP messages is turned on.

getMessageLoggingFilter

public ExceptionFilter getMessageLoggingFilter()
Get the message logging filter.

Returns:
the message logging filter object.

setMessageLoggingFilter

public void setMessageLoggingFilter(ExceptionFilter messageLoggingFilter)
Set the message logging filter. This will only have an effect if logging in general, and logging of SOAP messages (payload), are already enabled. The message logging filter allows constrained logging of payload messages for specific exceptions that match the filter.

Parameters:
messageLoggingFilter -

isLogHTTPHeaders

public boolean isLogHTTPHeaders()
Get LogHTTPHeaders property.

Returns:
true means logging of HTTP headers is turned on.

setLogHTTPHeaders

public void setLogHTTPHeaders(boolean logHTTPHeaders)
Set to true to enable logging of all HTTP request/response headers if logging is enabled(setEnableLogging(true)).

Parameters:
logHTTPHeaders -

Changes since
the last release

The information contained in this document is proprietary and confidential. Use of this information and the eBay API requires a Non-Disclosure Agreement (NDA) between the user and eBay Inc. For information regarding a qualifying NDA, contact Developer Relations: developer-relations@ebay.com
© 2004-2009 eBay Inc. All rights reserved.