Documentation
¶
Index ¶
- Constants
- func ConfigureLoggingOptions(ctx context.Context, logLevel hclog.Level) (*policy.LogOptions, error)
- func GetLoggingAllowedHeadersOption(ctx context.Context) ([]string, error)
- func GetLoggingAllowedQueryParamsOption(ctx context.Context) ([]string, error)
- func GetLoggingIncludeBodyOption(ctx context.Context) (bool, error)
- func NewFabricSDKLoggerSubsystem(ctx context.Context) (context.Context, hclog.Level, error)
- type ProviderWithFabricClient
Constants ¶
View Source
const ( FabricSDKLoggerName = "fabric-sdk-go" AzureSDKLoggingEnvVar = "AZURE_SDK_GO_LOGGING" AzureSDKLoggingAll = "all" FabricSDKLoggingEnvVar = "FABRIC_SDK_GO_LOGGING" FabricSDKLoggingIncludeBodyEnvVar = "FABRIC_SDK_GO_LOGGING_INCLUDE_BODY" FabricSDKLoggingAllowedHeadersEnvVar = "FABRIC_SDK_GO_LOGGING_ALLOWED_HEADERS" FabricSDKLoggingAllowedQueryParamsEnvVar = "FABRIC_SDK_GO_LOGGING_ALLOWED_QUERY_PARAMS" )
Variables ¶
This section is empty.
Functions ¶
func ConfigureLoggingOptions ¶
func ConfigureLoggingOptions(ctx context.Context, logLevel hclog.Level) (*policy.LogOptions, error)
ConfigureLoggingOptions configures the logging options for the Fabric SDK based on the environment variables.
func GetLoggingAllowedHeadersOption ¶
GetLoggingAllowedHeadersOption determines which HTTP headers should be included in logs.
func GetLoggingIncludeBodyOption ¶
GetLoggingIncludeBodyOption determines if request/response bodies should be included in logs.
Types ¶
Click to show internal directories.
Click to hide internal directories.