Skip to content

Commit

Permalink
fix: add missing sinkOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
loekensgard committed Nov 26, 2024
1 parent 1c1123a commit 2fc14fc
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using Elastic.Ingest.Elasticsearch.DataStreams;
using Elastic.Serilog.Sinks;
using Elastic.Transport;
using Microsoft.Extensions.Options;
using Serilog.Debugging;
using System;
using System.Linq;
Expand Down Expand Up @@ -84,6 +85,7 @@ public static ILoggerBuilder UseElasticsearch(this ILoggerBuilder builder, strin
sinkOptions.IlmPolicy = llmPolicy;
}

configure?.Invoke(sinkOptions);
builder.Configuration.WriteTo.Elasticsearch(sinkOptions);
}

Expand Down

0 comments on commit 2fc14fc

Please sign in to comment.