Skip to content

Commit

Permalink
Adding some logging
Browse files Browse the repository at this point in the history
  • Loading branch information
VibeNL committed Oct 9, 2023
1 parent 94785da commit f3ca45b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion GhostfolioSidekick/FileImporter/FileImporterTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public async Task DoWork()
foreach (var directory in directories.Select(x => new DirectoryInfo(x)))
{
var accountName = directory.Name;
logger.LogDebug($"AccountName: {accountName}");
logger.LogInformation($"AccountName: {accountName}");

try
{
Expand Down
11 changes: 7 additions & 4 deletions GhostfolioSidekick/Program.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using GhostfolioSidekick.FileImporter;
using GhostfolioSidekick.FileImporter.Bunq;
using GhostfolioSidekick.FileImporter.DeGiro;
using GhostfolioSidekick.FileImporter.Generic;
using GhostfolioSidekick.FileImporter.ScalableCaptial;
Expand Down Expand Up @@ -40,12 +41,14 @@ static async Task Main(string[] args)
services.AddSingleton<IGhostfolioAPI, GhostfolioAPI>();
services.AddScoped<IScheduledWork, FileImporterTask>();

services.AddScoped<IFileImporter, ScalableCapitalParser>();
services.AddScoped<IFileImporter, DeGiroParser>();
services.AddScoped<IFileImporter, Trading212Parser>();
services.AddScoped<IFileImporter, BunqParser>();
//services.AddScoped<IFileImporter, CoinbaseParser>();
//services.AddScoped<IFileImporter, NexoParser>();
services.AddScoped<IFileImporter, DeGiroParser>();
services.AddScoped<IFileImporter, GenericParser>();
//services.AddScoped<IFileImporter, NexoParser>();
services.AddScoped<IFileImporter, ScalableCapitalParser>();
services.AddScoped<IFileImporter, Trading212Parser>();

});

await hostBuilder.RunConsoleAsync();
Expand Down

0 comments on commit f3ca45b

Please sign in to comment.