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