Skip to content

Commit

Permalink
Configure logging
Browse files Browse the repository at this point in the history
Apply logging configuration from `IConfiguration`.
  • Loading branch information
martincostello committed Nov 26, 2023
1 parent f1fa8bc commit 48e2040
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/LondonTravel.Skill/AlexaFunction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,11 @@ protected virtual void ConfigureServices(IServiceCollection services)
services.AddOptions();
services.Configure<SkillConfiguration>(configuration.GetSection("Skill"));

services.AddLogging((builder) => builder.AddJsonConsole());
services.AddLogging((builder) =>
{
builder.AddConfiguration(configuration.GetSection("Logging"));
builder.AddJsonConsole();
});

services.AddHttpClients();

Expand Down

0 comments on commit 48e2040

Please sign in to comment.