Skip to content

Commit

Permalink
fix(src/knifehub.web/program.cs): builder.Host.UseSerilog()
Browse files Browse the repository at this point in the history
  • Loading branch information
yiyungent committed Dec 29, 2023
1 parent 2e82216 commit 6b924ec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/KnifeHub.Web/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ public static void Main(string[] args)

var builder = WebApplication.CreateBuilder(args);

// UseSerilog
builder.Host.UseSerilog();

// 配置注入
ConfigOptions configOptions = builder.Configuration.GetSection(ConfigOptions.Config).Get<ConfigOptions>();
builder.Services.Configure<ConfigOptions>(builder.Configuration.GetSection(ConfigOptions.Config));
Expand Down

0 comments on commit 6b924ec

Please sign in to comment.