diff --git a/src/SerilogWeb.Classic/Classic/ApplicationLifecycleModule.cs b/src/SerilogWeb.Classic/Classic/ApplicationLifecycleModule.cs index e6da0b7..09fdc57 100644 --- a/src/SerilogWeb.Classic/Classic/ApplicationLifecycleModule.cs +++ b/src/SerilogWeb.Classic/Classic/ApplicationLifecycleModule.cs @@ -86,7 +86,7 @@ public static Func RequestFilter /// /// When set to Always, form data will be written via an event (using /// severity from FormDataLoggingLevel). When set to OnlyOnError, this - /// will only be written if the Response has a 500 status. + /// will only be written if the Response has status code >= 500. /// When set to OnMatch /// is executed to determine if form data is logged. /// The default is Never. Requires that is also diff --git a/src/SerilogWeb.Classic/Classic/SerilogWebClassicConfigurationBuilder.cs b/src/SerilogWeb.Classic/Classic/SerilogWebClassicConfigurationBuilder.cs index 48e8e07..3dcd52f 100644 --- a/src/SerilogWeb.Classic/Classic/SerilogWebClassicConfigurationBuilder.cs +++ b/src/SerilogWeb.Classic/Classic/SerilogWebClassicConfigurationBuilder.cs @@ -210,7 +210,7 @@ public FormDataLoggingConfigurationBuilder AtLevel(LogEventLevel level) } /// - /// Specify that FormData should be attached to logged events only in case of error (Status > 500) + /// Specify that FormData should be attached to logged events only in case of error (status code >= 500) /// /// A configuration object to allow chaining public FormDataLoggingConfigurationBuilder OnlyOnError() @@ -221,7 +221,7 @@ public FormDataLoggingConfigurationBuilder OnlyOnError() } /// - /// Specify that FormData should be attached to logged events only when the provided condistion is true + /// Specify that FormData should be attached to logged events only when the provided condition is true /// /// The predicate that defines when FormData should be attached /// A configuration object to allow chaining diff --git a/test/SerilogWeb.Classic.Tests/ModuleConfigurationContractTests.cs b/test/SerilogWeb.Classic.Tests/ModuleConfigurationContractTests.cs index f25356d..f53e9a0 100644 --- a/test/SerilogWeb.Classic.Tests/ModuleConfigurationContractTests.cs +++ b/test/SerilogWeb.Classic.Tests/ModuleConfigurationContractTests.cs @@ -396,7 +396,7 @@ public void RequestFiltering() [InlineData(500, true)] [InlineData(501, true)] [InlineData(499, false)] - public void StatusCodeBiggerThan500AreLoggedAsError(int httpStatusCode, bool isLoggedAsError) + public void StatusCodeEqualOrBiggerThan500AreLoggedAsError(int httpStatusCode, bool isLoggedAsError) { TestContext.SimulateRequest(httpStatusCode: httpStatusCode); diff --git a/test/SerilogWeb.Classic.Tests/WebRequestLoggingHandlerTests.cs b/test/SerilogWeb.Classic.Tests/WebRequestLoggingHandlerTests.cs index f9c907b..a1dfbf2 100644 --- a/test/SerilogWeb.Classic.Tests/WebRequestLoggingHandlerTests.cs +++ b/test/SerilogWeb.Classic.Tests/WebRequestLoggingHandlerTests.cs @@ -452,7 +452,7 @@ public void RequestFiltering() [InlineData(500, true)] [InlineData(501, true)] [InlineData(499, false)] - public void StatusCodeBiggerThan500AreLoggedAsError(int httpStatusCode, bool isLoggedAsError) + public void StatusCodeEqualOrBiggerThan500AreLoggedAsError(int httpStatusCode, bool isLoggedAsError) { TestContext.SimulateRequest(httpStatusCode: httpStatusCode);