-
Notifications
You must be signed in to change notification settings - Fork 201
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
configure serilog in multiple project assembly #339
Comments
@julian94 can you please take a look, or assign it to somebody who can help. |
I am not affiliated with the project, but I took a look at your codebase as requested. I was unable to find the issue you had with Serilog, but I found some others.
|
@julian94 Answer of your concerns.
Feel free to post if If you have any other doubt. |
Try changing your logging config to not use the options variable, the options stops the configuration from being read properly. In World.WebApi/Program.cs
|
Can anybody please provide me way to use serilog in my ASP dot net core 6.0 application, I have multiple project assembly and I want to use serilog in all of them, I tried some of the existing solution but I don't se any log printed in console.and more over can you provide me how to use mock logger in Xunit project.I try but it is throwing System.ArgumentException.
Description
Console or file Sink Log output is not getting displayed.
In unit test _logger.Object is throwing System.ArgumentException in CreateCountryCommandHandlerTest in line number 33.
Reproduction
Just run the code and hit weather-forcast api.
Expected behavior
Console and File output should be displayed.
Relevant package, tooling and runtime versions
Serilog.AspNetCore (7.0.0)
Additional context
Code Zip file is available
World.CleanArchitecture.zip
The text was updated successfully, but these errors were encountered: