1 write to FileName
Microsoft.AspNetCore.HttpLogging.Tests (1)
W3CLoggerOptionsTests.cs (1)
29Assert.Throws<ArgumentException>(() => options.FileName = "");
27 references to FileName
Microsoft.AspNetCore.HttpLogging (2)
FileLoggerProcessor.cs (2)
60_fileName = loggerOptions.FileName; 92_fileName = loggerOptions.FileName;
Microsoft.AspNetCore.HttpLogging.Tests (25)
FileLoggerProcessorTests.cs (25)
47filePath = GetLogFilePath(path, options.FileName, _today, 0); 86filePathToday = GetLogFilePath(path, options.FileName, _today, 0); 93filePathTomorrow = GetLogFilePath(path, options.FileName, tomorrow, 0); 132filePath1 = GetLogFilePath(path, options.FileName, _today, 0); 133filePath2 = GetLogFilePath(path, options.FileName, _today, 1); 176lastFilePath = GetLogFilePath(path, options.FileName, _today, 9); 181await WaitForRoll(GetLogFilePath(path, options.FileName, _today, i)).DefaultTimeout(); 195Assert.StartsWith(GetLogFileBaseName(options.FileName, _today), actualFiles[i], StringComparison.InvariantCulture); 232lastFilePath = GetLogFilePath(path, options.FileName, _today, 9999); 290var filePath = GetLogFilePath(path, options.FileName, _today, 2); 303var filePath = GetLogFilePath(path, options.FileName, _today, 5); 317Assert.Contains(GetLogFileName(options.FileName, _today, i), actualFiles1[i]); 327await WaitForFile(GetLogFilePath(path, options.FileName, _today, 6), _messageOne.Length).DefaultTimeout(); 328await WaitForRoll(GetLogFilePath(path, options.FileName, _today, 0)).DefaultTimeout(); 329await WaitForRoll(GetLogFilePath(path, options.FileName, _today, 1)).DefaultTimeout(); 341Assert.Equal(GetLogFileName(options.FileName, _today, i + 2), actualFiles2[i]); 368var filePath1 = GetLogFilePath(path, options.FileName, _today, 0); 369var filePath2 = GetLogFilePath(path, options.FileName, _today, 1); 370var filePath3 = GetLogFilePath(path, options.FileName, _today, 2); 432var filePath1 = GetLogFilePath(path, options.FileName, _today, 0); 433var filePath2 = GetLogFilePath(path, options.FileName, _today, 1); 434var filePath3 = GetLogFilePath(path, options.FileName, _today, 2); 435var filePath4 = GetLogFilePath(path, options.FileName, _today, 3); 502var filePath1 = GetLogFilePath(path, options.FileName, _today, 0); 503var filePath2 = GetLogFilePath(path, options.FileName, _today, 1);