Click or drag to resize

AspNetRequestUrlProperty Enumeration

Controls which portions of the URL are logged This is a Flags enumeration

Namespace:  NLog.Web.Enums
Assemblies:   NLog.Web.AspNetCore (in NLog.Web.AspNetCore.dll) Version: 5.3.13+628b0876960af3ee3454c99b7985dbb5e1c46bf0
  NLog.Web (in NLog.Web.dll) Version: 5.3.13+628b0876960af3ee3454c99b7985dbb5e1c46bf0
Syntax
[FlagsAttribute]
public enum AspNetRequestUrlProperty
Members
  Member nameValueDescription
None0 Microsoft recommends a Flags enum to have a None=0 value. See https://docs.microsoft.com/en-us/dotnet/api/system.flagsattribute?view=net-6.0
Scheme1 To specify whether to exclude / include the scheme. Ex. 'http' or 'https'
Host2 To specify whether to exclude / include the host.
Port4 To specify whether to include / exclude the Port.
Path8 To specify whether to exclude / include the url-path.
Query16 To specify whether to include / exclude the Query string.
Default11 By default, log the scheme://host/path
See Also