Skip to content

Commit

Permalink
Merge pull request #14 from neozhu/dev
Browse files Browse the repository at this point in the history
WIP: add Serilog.Enrichers.ClientInfo package
  • Loading branch information
neozhu authored Sep 9, 2021
2 parents 2d27b44 + 6387b79 commit 8e9d485
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 8e9d485

Please sign in to comment.