This commit is contained in:
stam 2021-01-14 20:00:27 +03:00
parent c39c2dec3b
commit 0af69af204

View File

@ -40,9 +40,11 @@ namespace EpicMorg.Atlassian.Downloader {
.AddEnvironmentVariables(); .AddEnvironmentVariables();
}) })
.ConfigureServices((ctx, services) => { .ConfigureServices((ctx, services) => {
services services
.AddOptions() .AddOptions()
.AddLogging(builder => { .AddLogging(builder => {
builder.ClearProviders();
Log.Logger = new LoggerConfiguration() Log.Logger = new LoggerConfiguration()
.ReadFrom.Configuration(ctx.Configuration) .ReadFrom.Configuration(ctx.Configuration)
.CreateLogger(); .CreateLogger();
@ -96,7 +98,7 @@ namespace EpicMorg.Atlassian.Downloader {
}; };
Console.Title = $"{appTitle} {appVersion} {appBuildType}"; Console.Title = $"{appTitle} {appVersion} {appBuildType}";
logger.LogInformation($"Task started at {appStartupDate}."); logger.LogTrace($"Task started at {appStartupDate}.");
var client = new HttpClient(); var client = new HttpClient();
@ -143,11 +145,11 @@ namespace EpicMorg.Atlassian.Downloader {
} }
} }
} }
logger.LogCritical($"All files from \"{feedUrl}\" successfully downloaded."); logger.LogTrace($"All files from \"{feedUrl}\" successfully downloaded.");
} }
} }
logger.LogCritical($"Download complete at {appStartupDate}."); logger.LogTrace($"Download complete at {appStartupDate}.");
} }