Skip to content

Commit

Permalink
WIP: add Serilog.Enrichers.ClientInfo package
Browse files Browse the repository at this point in the history
  • Loading branch information
neozhu committed Sep 9, 2021
1 parent 511640b commit 6387b79
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/SmartAdmin.WebUI/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ public static IHostBuilder CreateHostBuilder(string[] args) =>
.ReadFrom.Configuration(context.Configuration)
.ReadFrom.Services(services)
.Enrich.FromLogContext()
.WriteTo.Console())
.WriteTo.Console()
)
.ConfigureWebHostDefaults(webBuilder =>
{
webBuilder.UseStartup<Startup>();
Expand Down
1 change: 1 addition & 0 deletions src/SmartAdmin.WebUI/SmartAdmin.WebUI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Serilog.AspNetCore" Version="4.1.0" />
<PackageReference Include="Serilog.Enrichers.ClientInfo" Version="1.1.4" />
<PackageReference Include="Serilog.Sinks.Console" Version="4.0.0" />
</ItemGroup>

Expand Down

0 comments on commit 6387b79

Please sign in to comment.