We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
using Serilog; Log.Logger = new LoggerConfiguration() .WriteTo.Console() .CreateLogger(); var builder = WebApplication.CreateBuilder(args); builder.Services.AddSerilog(); // Add service defaults & Aspire client integrations. builder.AddServiceDefaults();
With this configuration, the application will not send any log content to .NET Aspire's dashboard, unless Serilog code were removed.
The text was updated successfully, but these errors were encountered:
builder.Logging.AddSerilog() will do what you're after, preserving the rest of the default logging setup.
builder.Logging.AddSerilog()
The serilog tag on Stack Overflow is a good source for more info if you need it. HTH!
serilog
Sorry, something went wrong.
No branches or pull requests
With this configuration, the application will not send any log content to .NET Aspire's dashboard, unless Serilog code were removed.
The text was updated successfully, but these errors were encountered: