4 writes to _path
Microsoft.AspNetCore.HttpLogging (4)
FileLoggerProcessor.cs (4)
47
_path
= loggerOptions.LogDirectory;
53
_path
= Path.Join(environment.ContentRootPath, "logs");
57
_path
= Path.Join(environment.ContentRootPath, _path);
89
_path
= loggerOptions.LogDirectory;
9 references to _path
Microsoft.AspNetCore.HttpLogging (9)
FileLoggerProcessor.cs (9)
51
if (string.IsNullOrEmpty(
_path
))
55
else if (!Path.IsPathRooted(
_path
))
57
_path = Path.Join(environment.ContentRootPath,
_path
);
243
if (!Directory.Exists(
_path
))
247
Directory.CreateDirectory(
_path
);
252
Log.CreateDirectoryFailed(_logger,
_path
, ex);
282
var files = new DirectoryInfo(
_path
)
307
var files = new DirectoryInfo(
_path
)
329
return Path.Combine(
_path
, FormattableString.Invariant($"{_fileName}{date.Year:0000}{date.Month:00}{date.Day:00}.{_fileNumber:0000}.txt"));