mirror of
https://github.com/EpicMorg/atlassian-downloader.git
synced 2024-12-28 13:05:29 +03:00
logs
This commit is contained in:
parent
c39c2dec3b
commit
0af69af204
@ -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}.");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user