-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
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
Aspnet Core 5 single file deploy with Serilog - no log output #244
Comments
Just to add that I'm having the exact same issue while running a .NET5 single file deployment (ex: |
Hi, @alberk8, @pedroansilva
|
Auto-discovery of configuration assemblies for .NET Core relies on application's As far as I can tell, the |
I had a similar problem when switching the project to .NET 5. What solved it is moving the configuration from |
same here @HakamFostok |
The Serilog maintainers want you to have a great experience using Serilog, and will happily track down and resolve bugs. We all have limited time, though, so please think through all of the factors that might be involved and include as much useful information as possible 😊.
ℹ If the problem is caused by a sink or other related package, please try to track down the correct repository for that package and create the report there: this tracker is for the Serilog.AspNetCore package only.
Description
There is no log output to console or log file
Reproduction
program.cs
appsettings.json
Expected behavior
logs to console and file. The same app works in dotnet core 3.1
Relevant package, tooling and runtime versions
What Serilog version are you using, on what platform?
Serilog.AspNetCore 3.4.0
Docker image Alpine 3.12 x64 from Microsoft
https://github.com/dotnet/dotnet-docker/tree/master/src/aspnet/5.0/alpine3.12/amd64
Additional context
The same app works when it is not bundled/compiled into a single file or standalone deployment.
The text was updated successfully, but these errors were encountered: