-
Notifications
You must be signed in to change notification settings - Fork 213
Closed
Labels
Description
I'm exploring the new Dotnet 8 Aspire dashboard.
Out of the box it is providing structured logs (from opentelemetry) and tracing as shown in the print screen:

As soon i add Serilog Use like this
builder.Host.UseSerilog();
I loose the structured logs.
For example here i added the UseSerilog in the web frontend:

The serilog instrumentation is like this:
Log.Logger = new LoggerConfiguration() .WriteTo.Console() .Enrich.FromLogContext() .Enrich.With(new TraceIdEnricher()) .CreateLogger();
How can i use Serilog and Aspire together?