| NLogRequestLoggingOptionsShouldLogRequest Property |
Mapper from HttpContext status to LogLevel
Namespace:
NLog.Web
Assembly:
NLog.Web.AspNetCore (in NLog.Web.AspNetCore.dll) Version: 5.3.13+628b0876960af3ee3454c99b7985dbb5e1c46bf0
Syntax public Func<HttpContext, Exception, LogLevel> ShouldLogRequest { get; set; }
Public Property ShouldLogRequest As Func(Of HttpContext, Exception, LogLevel)
Get
Set
Dim instance As NLogRequestLoggingOptions
Dim value As Func(Of HttpContext, Exception, LogLevel)
value = instance.ShouldLogRequest
instance.ShouldLogRequest = value
member ShouldLogRequest : Func<HttpContext, Exception, LogLevel> with get, set
Property Value
Type:
FuncHttpContext,
Exception,
LogLevelSee Also