Amazon AWS SDK Podręcznik Użytkownika Strona 19: AWS Region Selection

/ 155
Spis treści
<aws endpointDefinition="c:\config\endpoints.xml""/>
Alternatively, you can set the
AWSEndpointDefinition
key in the
<appSettings>
section:
<add key="AWSEndpointDefinition" value="c:\config\endpoints.xml"/>
Alternatively, to set the endpoint definition file with the SDK for .NET API, set the
AWSConfigs.EndpointDefinition
property:
AWSConfigs.EndpointDefinition = @"c:\config\endpoints.xml";
If no filename is provided, then a custom configuration file will not be used. Changes to this setting
take effect only for new AWS client instances.
AWSLogging
Configures how the SDK should log events, if at all. For example, the recommended approach is to
use the
logging
element, which is a child element of the
aws
element:
<logging logTo="Log4Net"/>
Alternatively:
<add key="AWSLogging" value="log4net"/>
The possible values are:
•
None
– Turn off event logging. This is the default.
•
log4net
– Log using log4net.
•
SystemDiagnostics
– Log using
System.Diagnostics
.
You can set multiple values at once, separated by commas. To set both log4net and
System.Diagnostics
logging in the
.config
file, use the recommended approach with the
logging
element:
<logging logTo="Log4Net, SystemDiagnostics"/>
Alternatively:
<add key="AWSLogging" value="log4net, SystemDiagnostics"/>
Alternatively, 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
logMetrics
attribute value in
the
logging
element, which is a child element of the
aws
element:
Version v2.0.0
15
AWS SDK for .NET Developer Guide
Additional Application Parameters

Plik PDF · ·

Drukuj

Drukuj dokument

Dzielenie się

Pytania o Amazon AWS SDK

Nie ma jeszcze pytań o tę instrukcję. Zadaj pierwsze.

Zadaj pytanie

Odpowiadamy na podstawie instrukcji i wskazujemy stronę. Pytanie pojawi się w serwisie po sprawdzeniu.

Wszystkie pytania i odpowiedzi ›

Powiązane produkty i podręczniki dla Oprogramowanie Amazon AWS SDK