Skip to content

Commit

Permalink
Updated to reflect revised J4JLogger API
Browse files Browse the repository at this point in the history
  • Loading branch information
markolbert committed Jan 17, 2021
1 parent bd91329 commit a6c274e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
14 changes: 5 additions & 9 deletions AlphaVantageCSVRetriever/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,12 @@ private static void ConfigureServices()
.AsSelf()
.SingleInstance();

var channels = configRoot.GetSection( "Logger:Channels" ).Get<ChannelConfig>();
var channelInfo = new ChannelInformation()
.AddChannel<ConsoleConfig>( "Logger:Channels:Console" )
.AddChannel<FileConfig>( "Logger:Channels:File" );

builder.Register( c => new J4JLoggerConfiguration<ChannelConfig>
{
Channels = channels
} )
.AsImplementedInterfaces()
.SingleInstance();

builder.RegisterJ4JLogging();
builder.RegisterJ4JLogging<J4JLoggerConfiguration>(
new ChannelFactory( configRoot, channelInfo, "Logger" ) );

builder.RegisterType<DataRetriever>()
.AsSelf()
Expand Down
1 change: 1 addition & 0 deletions AlphaVantageRetriever/AlphaVantageAPI.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"ApiKeyEncrypted":"AQAAANCMnd8BFdERjHoAwE/Cl\u002BsBAAAABQ0QeulUN0uvuwwjpaCezwAAAAACAAAAAAAQZgAAAAEAACAAAACapWQg0fbpnTYcy1v634eDNIEnw38CsLPkpktdVKnB4QAAAAAOgAAAAAIAACAAAABvUJBjakA2cObYJxXGUZwtXXvfA9qruaHRVntB/Byp2zAAAACa4yAs5YpzxpMPl3xZdgZ0uEzUgEL9zcKGQ9ndc4TJqGn2wME2B72Uek\u002Bzp/URHKhAAAAA4lRBp7X2fcIZjkx0B8N3\u002Bi7iAeNvyMi5ltPz8W6hTi2Rhr1P16Wr9ZwmitOrdGDfMtGKke64G3PSg\u002BGBBg3ZAA=="}

0 comments on commit a6c274e

Please sign in to comment.