File tree Expand file tree Collapse file tree 3 files changed +53
-345
lines changed
Expand file tree Collapse file tree 3 files changed +53
-345
lines changed Original file line number Diff line number Diff line change 1010using Amazon . RedshiftDataAPIService ;
1111using Microsoft . Extensions . DependencyInjection ;
1212using Microsoft . Extensions . Hosting ;
13+ using Microsoft . Extensions . Logging ;
1314using RedshiftActions ;
1415
1516namespace RedshiftBasics ;
@@ -22,6 +23,7 @@ public class RedshiftBasics
2223{
2324 public static bool IsInteractive = true ;
2425 public static RedshiftWrapper ? Wrapper = null ;
26+ public static ILogger logger = null ! ;
2527 private static readonly string _moviesFilePath = "../../../../../../resources/sample_files/movies.json" ;
2628
2729 /// <summary>
@@ -38,6 +40,9 @@ public static async Task Main(string[] args)
3840 )
3941 . Build ( ) ;
4042
43+ logger = LoggerFactory . Create ( builder => { builder . AddConsole ( ) ; } )
44+ . CreateLogger < RedshiftBasics > ( ) ;
45+
4146 Wrapper = host . Services . GetRequiredService < RedshiftWrapper > ( ) ;
4247
4348 await RunScenarioAsync ( ) ;
You can’t perform that action at this time.
0 commit comments