Amazon AWS SDK Guida Utente Pagina 19: AWS Region Selection

/ 155
Indice
<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

File PDF · ·

Stampa

Stampa documento

Condivisione

Domande su Amazon AWS SDK

Non ci sono ancora domande su questo manuale. Fate la prima.

Fai una domanda

Rispondiamo in base al manuale e indichiamo la pagina. La domanda viene pubblicata sul sito dopo il controllo.

Tutte le domande e risposte ›

Prodotti e manuali riguardanti Software Amazon AWS SDK