2007
Table Of Contents
- Name-Value Pair API Reference for Germany
- Preface
- Overview
- Accepting PayPal in Express Checkout
- Basic Checkout with PayPal
- Support giropay and electronic funds transfer
- Controlling the Shipping Address Using SetExpressCheckout
- Changing the Language on the PayPal Login Page Using SetExpressCheckout
- Changing the Logo on the PayPal Pages Using SetExpressCheckout
- Form-Filling Your Payment Review Page Using GetExpressCheckoutDetails
- Making a Sale Using DoExpressCheckoutPayment
- Changing the URL for IPN Using DoExpressCheckoutPayment
- Including Line Item Details Using DoExpressCheckoutPayment
- Including Subtotals Using DoExpressCheckoutPayment
- Updating Order Details Using DoExpressCheckoutPayment
- Updating the Shipping Address Using DoExpressCheckoutPayment
- Back-Office Administration
- NVP API Method and Field Reference
- Error Message Reference
- NVP API Web Samples
- The Java SDK
- The ASP.NET SDK
- Country Codes
- Index
The ASP.NET SDK
Installing the ASP.NET SDK
112 April 2007 Name-Value Pair API Developer Guide and Reference
Log Levels
The SDK varies the amount of detail it records according to four
logging levels.
Setting SDK Log Levels
To enable logging for your SDK-based web applications, add the following lines inside the
<configuration> block of the Web.config file. You can copy these lines from the
SDK_root\samples\ASPNET\Web.config file.
z You might want to change the value of the file element to write log records to a location
you prefer.
z Set the value of the level element to the desired detail described in Table E.4, “SDK
Logging Levels.”
<configSections>
<section name="log4net"
type="log4net.Config.Log4NetConfigurationSectionHandler,log4net"/>
</configSections>
<log4net>
<appender name="PAYPALLOGFILE"
type="log4net.Appender.RollingFileAppender">
<file value="logs/paypal.sdk.log" />
<appendToFile value="true" />
<encoding value="UTF-8" />
<rollingStyle value="5" />
<maxSizeRollBackups value="10" />
<maximumFileSize value="10MB" />
<staticLogFileName value="true" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern
value="%d{dd MMM yyyy HH:mm:ss} %-5p [%C{1}] %m%n" />
</layout>
</appender>
T
ABLE E.4 SDK Logging Levels
Level Description
ALL Same as DEBUG
ERROR Log only severe errors
INFO Date/time of API operation, operation name, elapsed time, success or failure indication
DEBUG Full text of requests and responses and other debugging messages. DEBUG logging can
degrade the performance of the SDK. Be careful about using it for day-to-day
operation.
N OTE: Because requests and responses are asynchronous, the recording of requests and
responses might appear out of sequence in the log file.