User guide
You can set multiple values at once, separated by commas. To set both log4net and
System.Diagnostics 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