Skip to content

Commit

Permalink
Update NetCore2 ConsoleExample to include the minimumlevel.
Browse files Browse the repository at this point in the history
Also add a mandatory dep
  • Loading branch information
seblucas committed Nov 1, 2017
1 parent 4113785 commit 4e40753
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/NetCore2/ConsoleExample/ConsoleExample.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="1.1.0" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="2.0.0" />
<PackageReference Include="NLog" Version="4.5.0-beta07" />
</ItemGroup>

Expand Down
1 change: 1 addition & 0 deletions examples/NetCore2/ConsoleExample/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ private static IServiceProvider BuildDi()

services.AddSingleton<ILoggerFactory, LoggerFactory>();
services.AddSingleton(typeof(ILogger<>), typeof(Logger<>));
services.AddLogging((builder) => builder.SetMinimumLevel(LogLevel.Trace));

var serviceProvider = services.BuildServiceProvider();

Expand Down

0 comments on commit 4e40753

Please sign in to comment.