сделал понятнее
This commit is contained in:
parent
fe7d84e1cb
commit
869f48fa15
@ -31,11 +31,8 @@ namespace Cruiser
|
|||||||
{
|
{
|
||||||
pathNeed += path[i] + "\\";
|
pathNeed += path[i] + "\\";
|
||||||
}
|
}
|
||||||
var configuration = new ConfigurationBuilder().SetBasePath(Directory.GetCurrentDirectory())
|
var configuration = new ConfigurationBuilder().SetBasePath(Directory.GetCurrentDirectory()).AddJsonFile(path: $"{pathNeed}appsettings.json", optional: false, reloadOnChange: true).Build();
|
||||||
.AddJsonFile(path: $"{pathNeed}appsettings.json", optional: false, reloadOnChange: true)
|
var logger = new LoggerConfiguration().ReadFrom.Configuration(configuration).CreateLogger();
|
||||||
.Build();
|
|
||||||
var logger = new LoggerConfiguration().ReadFrom.Configuration(configuration)
|
|
||||||
.CreateLogger();
|
|
||||||
|
|
||||||
option.SetMinimumLevel(LogLevel.Information);
|
option.SetMinimumLevel(LogLevel.Information);
|
||||||
option.AddSerilog(logger);
|
option.AddSerilog(logger);
|
||||||
|
Loading…
Reference in New Issue
Block a user