diff --git a/src/Microsoft.Extensions.Logging.AzureAppServices/AzureAppServicesDiagnosticsSettings.cs b/src/Microsoft.Extensions.Logging.AzureAppServices/AzureAppServicesDiagnosticsSettings.cs index 4da2d253..92a6eea5 100644 --- a/src/Microsoft.Extensions.Logging.AzureAppServices/AzureAppServicesDiagnosticsSettings.cs +++ b/src/Microsoft.Extensions.Logging.AzureAppServices/AzureAppServicesDiagnosticsSettings.cs @@ -64,7 +64,7 @@ public string OutputTemplate get { return _outputTemplate; } set { - if (string.IsNullOrWhiteSpace(value)) + if (string.IsNullOrEmpty(value)) { throw new ArgumentException(nameof(value), $"{nameof(OutputTemplate)} must be non-empty string."); } @@ -115,7 +115,7 @@ public string BlobName get { return _blobName; } set { - if (string.IsNullOrWhiteSpace(value)) + if (string.IsNullOrEmpty(value)) { throw new ArgumentException(nameof(value), $"{nameof(BlobName)} must be non-empty string."); } @@ -135,7 +135,7 @@ public int BackgroundQueueSize { if (value < 0) { - throw new ArgumentOutOfRangeException(nameof(value), $"{nameof(BackgroundQueueSize)} must be positive or 0."); + throw new ArgumentOutOfRangeException(nameof(value), $"{nameof(BackgroundQueueSize)} must be non-negative."); } _backgroundQueueSize = value; }