This repository was archived by the owner on Apr 17, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,15 @@ public static IServiceCollection AddSerilogServices(this IServiceCollection serv
1010 return services ;
1111 }
1212
13+ public static IServiceCollection AddSerilogSeqServices ( this IServiceCollection services )
14+ {
15+ Log . Logger = new LoggerConfiguration ( ) . MinimumLevel . Debug ( ) . CreateLogger ( ) ;
16+
17+ services . AddTransient < ILoggerService , LoggerService > ( ) ;
18+
19+ return services ;
20+ }
21+
1322 public static WebApplication AddSerilogConfigureServices ( this WebApplication application )
1423 {
1524 application . UseSerilogRequestLogging ( options =>
Original file line number Diff line number Diff line change 4242 <PackageReference Include =" Serilog.Settings.Configuration" Version =" 3.4.0" />
4343 <PackageReference Include =" Serilog.Sinks.Console" Version =" 4.1.0" />
4444 <PackageReference Include =" Serilog.Sinks.File" Version =" 5.0.0" />
45+ <PackageReference Include =" Serilog.Sinks.Seq" Version =" 5.2.2" />
4546 <PackageReference Include =" Microsoft.AspNetCore.Localization" Version =" 2.2.0" />
46- <PackageReference Include =" Nerdbank.GitVersioning" Version =" 3.6.128 " >
47+ <PackageReference Include =" Nerdbank.GitVersioning" Version =" 3.6.132 " >
4748 <PrivateAssets >all</PrivateAssets >
4849 <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
4950 </PackageReference >
You can’t perform that action at this time.
0 commit comments