diff --git a/Cruiser/Program.cs b/Cruiser/Program.cs index bf7bb81..7267659 100644 --- a/Cruiser/Program.cs +++ b/Cruiser/Program.cs @@ -31,11 +31,8 @@ namespace Cruiser { pathNeed += path[i] + "\\"; } - var configuration = new ConfigurationBuilder().SetBasePath(Directory.GetCurrentDirectory()) - .AddJsonFile(path: $"{pathNeed}appsettings.json", optional: false, reloadOnChange: true) - .Build(); - var logger = new LoggerConfiguration().ReadFrom.Configuration(configuration) - .CreateLogger(); + var configuration = new ConfigurationBuilder().SetBasePath(Directory.GetCurrentDirectory()).AddJsonFile(path: $"{pathNeed}appsettings.json", optional: false, reloadOnChange: true).Build(); + var logger = new LoggerConfiguration().ReadFrom.Configuration(configuration).CreateLogger(); option.SetMinimumLevel(LogLevel.Information); option.AddSerilog(logger);