KöpBuy
1-855-856-7678
SupportSupport
The following snippet enables all logging and metrics for table activities in the storage account with a 7 day retention period.
CloudTableClient client = storageAccount.CreateCloudTableClient(); ServiceProperties sp = new ServiceProperties() ; sp.Logging.Version = "1.0"; sp.Logging.RetentionDays = 7; sp.Logging.LoggingOperations = LoggingOperations.All; sp.Metrics.Version = "1.0"; sp.Metrics.MetricsLevel = MetricsLevel.ServiceAndApi ; client.SetServiceProperties(sp);
The properties parameter specifies the logging and metrics settings for the account’s Table service.
The local storage service currently does not support this method.