| 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
<FlagsAttribute>
Public Enumeration AspNetRequestUrlProperty
Dim instance As AspNetRequestUrlProperty
[<FlagsAttribute>]
type AspNetRequestUrlProperty
Members
| Member name | Value | Description |
---|
| None | 0 |
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
|
| Scheme | 1 |
To specify whether to exclude / include the scheme. Ex. 'http' or 'https'
|
| Host | 2 |
To specify whether to exclude / include the host.
|
| Port | 4 |
To specify whether to include / exclude the Port.
|
| Path | 8 |
To specify whether to exclude / include the url-path.
|
| Query | 16 |
To specify whether to include / exclude the Query string.
|
| Default | 11 |
By default, log the scheme://host/path
|
See Also