Skip to content

Commit

Permalink
Fix the configuration binding name
Browse files Browse the repository at this point in the history
  • Loading branch information
jianmingyong committed Dec 9, 2023
1 parent 3d1cf29 commit abc2e01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion TheDialgaTeam.Serilog/Extensions/HostBuilderExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public static IHostBuilder ConfigureSerilog(this IHostBuilder hostBuilder, Actio
return hostBuilder.ConfigureServices(static collection =>
{
collection.AddOptions<LogLevelOptions>().BindConfiguration("TheDialgaTeam.Serilog:LogLevel");
collection.AddOptions<LogLevelMessageTemplateOptions>().BindConfiguration("TheDialgaTeam.Serilog:TemplateTextFormatter");
collection.AddOptions<LogLevelMessageTemplateOptions>().BindConfiguration("TheDialgaTeam.Serilog:LogLevelMessageTemplate");
collection.TryAddSingleton<AnsiMessageTemplateTextFormatterOptions>();
collection.TryAddSingleton<ActionSinkOptions>();
collection.TryAddSingleton<SerilogLoggerSettings>();
Expand Down
2 changes: 1 addition & 1 deletion TheDialgaTeam.Serilog/TheDialgaTeam.Serilog.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<JsonSerializerIsReflectionEnabledByDefault>true</JsonSerializerIsReflectionEnabledByDefault>

<PackageId>TheDialgaTeam.Serilog</PackageId>
<Version>1.0.0</Version>
<Version>1.1.0</Version>
<Authors>Yong Jian Ming</Authors>
<Company>TheDialgaTeam</Company>
<Product>TheDialgaTeam.Serilog</Product>
Expand Down

0 comments on commit abc2e01

Please sign in to comment.