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