Click or drag to resize

NLogRequestLoggingOptionsShouldLogRequest Property

Mapper from HttpContext status to LogLevel

Namespace:  NLog.Web
Assembly:  NLog.Web.AspNetCore (in NLog.Web.AspNetCore.dll) Version: 6.0.0+59339f2811712b446adf6dcd8a6bad39ad9f2ba1
Syntax
public Func<HttpContext, Exception?, LogLevel> ShouldLogRequest { get; set; }

Property Value

Type: FuncHttpContext, Exception, LogLevel
See Also