10 writes to LoggingFields
Logging.W3C.Sample (1)
Startup.cs (1)
17
logging.
LoggingFields
= W3CLoggingFields.All;
Microsoft.AspNetCore.HttpLogging.Tests (9)
FileLoggerProcessorTests.cs (2)
498
LoggingFields
= W3CLoggingFields.Time,
514
options.
LoggingFields
= W3CLoggingFields.Date;
W3CLoggerTests.cs (2)
20
LoggingFields
= W3CLoggingFields.Date | W3CLoggingFields.Time,
63
LoggingFields
= W3CLoggingFields.UriQuery | W3CLoggingFields.Host | W3CLoggingFields.ProtocolStatus,
W3CLoggingMiddlewareTests.cs (5)
42
options.CurrentValue.
LoggingFields
= W3CLoggingFields.None;
154
options.CurrentValue.
LoggingFields
= W3CLoggingFields.Cookie;
185
options.CurrentValue.
LoggingFields
= W3CLoggingFields.None;
220
options.CurrentValue.
LoggingFields
= options.CurrentValue.LoggingFields | W3CLoggingFields.Host |
275
options.CurrentValue.
LoggingFields
= W3CLoggingFields.TimeTaken;
33 references to LoggingFields
Microsoft.AspNetCore.HttpLogging (30)
FileLoggerProcessor.cs (3)
64
_fields = loggerOptions.
LoggingFields
;
75
if (_fields != loggerOptions.
LoggingFields
|| !_additionalHeaders.SetEquals(loggerOptions.AdditionalRequestHeaders))
83
_fields = loggerOptions.
LoggingFields
;
W3CLogger.cs (2)
20
_loggingFields = _options.CurrentValue.
LoggingFields
;
23
_loggingFields = options.
LoggingFields
;
W3CLoggerOptions.cs (4)
130
if (options.
LoggingFields
.HasFlag(W3CLoggingFields.Host))
134
if (options.
LoggingFields
.HasFlag(W3CLoggingFields.Referer))
138
if (options.
LoggingFields
.HasFlag(W3CLoggingFields.UserAgent))
142
if (options.
LoggingFields
.HasFlag(W3CLoggingFields.Cookie))
W3CLoggerProcessor.cs (1)
21
_loggingFields = options.CurrentValue.
LoggingFields
;
W3CLoggingMiddleware.cs (20)
82
if (options.
LoggingFields
.HasFlag(W3CLoggingFields.Date))
87
if (options.
LoggingFields
.HasFlag(W3CLoggingFields.Time))
92
if (options.
LoggingFields
.HasFlag(W3CLoggingFields.ServerName))
98
if ((W3CLoggingFields.ConnectionInfoFields & options.
LoggingFields
) != W3CLoggingFields.None)
102
if (options.
LoggingFields
.HasFlag(W3CLoggingFields.ClientIpAddress))
107
if (options.
LoggingFields
.HasFlag(W3CLoggingFields.ServerIpAddress))
112
if (options.
LoggingFields
.HasFlag(W3CLoggingFields.ServerPort))
120
if ((W3CLoggingFields.Request & options.
LoggingFields
) != W3CLoggingFields.None)
122
if (options.
LoggingFields
.HasFlag(W3CLoggingFields.ProtocolVersion))
127
if (options.
LoggingFields
.HasFlag(W3CLoggingFields.Method))
132
if (options.
LoggingFields
.HasFlag(W3CLoggingFields.UriStem))
137
if (options.
LoggingFields
.HasFlag(W3CLoggingFields.UriQuery))
142
if ((W3CLoggingFields.RequestHeaders & options.
LoggingFields
) != W3CLoggingFields.None)
144
if (options.
LoggingFields
.HasFlag(W3CLoggingFields.Host))
152
if (options.
LoggingFields
.HasFlag(W3CLoggingFields.Referer))
160
if (options.
LoggingFields
.HasFlag(W3CLoggingFields.UserAgent))
170
if (options.
LoggingFields
.HasFlag(W3CLoggingFields.Cookie))
207
if (options.
LoggingFields
.HasFlag(W3CLoggingFields.UserName))
212
if (options.
LoggingFields
.HasFlag(W3CLoggingFields.ProtocolStatus))
217
if (options.
LoggingFields
.HasFlag(W3CLoggingFields.TimeTaken))
Microsoft.AspNetCore.HttpLogging.Tests (3)
W3CLoggerOptionsTests.cs (2)
13
Assert.False(options.
LoggingFields
.HasFlag(W3CLoggingFields.UserName));
14
Assert.False(options.
LoggingFields
.HasFlag(W3CLoggingFields.Cookie));
W3CLoggingMiddlewareTests.cs (1)
220
options.CurrentValue.LoggingFields = options.CurrentValue.
LoggingFields
| W3CLoggingFields.Host |