User guide
Table Of Contents
- AWS SDK for .NET
- Table of Contents
- AWS SDK for .NET Developer Guide
- Getting Started with the AWS SDK for .NET
- Programming with the AWS SDK for .NET
- AWS SDK for .NET Tutorials and Examples
- Managing ASP.NET Session State with Amazon DynamoDB
- Tutorial: Creating Amazon EC2 Instances with the AWS SDK for .NET
- Tutorial: Grant Access Using an IAM Role and the AWS SDK for .NET
- Tutorial: Amazon EC2 Spot Instances
- Creating and Using an Amazon SQS Queue with the AWS SDK for .NET
- Creating an Amazon Route 53 Hosted Zone and Adding Resource Record Sets
- Additional Resources
- Document History

You can set multiple values at once, separated by commas. To set both log4net and System.Dia-
gnostics logging in the .config file, use:
<add key="AWSLogging" value="log4net, SystemDiagnostics"/>
Using the SDK for .NET API, combine the values of the LoggingOptions enumeration and set the
AWSConfigs.Logging property:
AWSConfigs.Logging = LoggingOptions.Log4Net | LoggingOptions.SystemDia
gnostics;
Changes to this setting take effect only for new AWS client instances.
AWSLogMetrics
Specifies whether or not the SDK should log performance metrics.
To set the metrics logging configuration in the .config file, set the AWSLogMetrics key in the
<appSettings> section:
<add key="AWSLogMetrics" value="true">
To set metrics logging with the SDK for .NET API, set the AWSConfigs.LogMetrics property:
AWSConfigs.LogMetrics = true;
This setting configures the default LogMetrics property for all clients/configs. Changes to this setting
take effect only for new AWS client instances.
AWSRegion
Configures the default AWS region for clients which have not explicitly specified a region.
To set the region in the .config file, set the AWSRegion key in the <appSettings> section:
<add key="AWSRegion" value="us-west-2"/>
To set the region with the SDK for .NET API, set the AWSConfigs.AWSRegion property:
AWSConfigs.AWSRegion = "us-west-2";
Changes to this setting take effect only for new AWS client instances.
AWSResponseLogging
Configures when the SDK should log service responses.
The possible values are:
• Never – Never log service responses. This is the default.
• Always – Always log service responses.
• OnError – Only log service responses when an error occurs.
To set the service logging configuration in the .config file, set the AWSResponseLogging key in
the <appSettings> section:
<add key="AWSResponseLogging" value="OnError"/>
Version v2.0.0
14
AWS SDK for .NET Developer Guide
Additional Application Parameters