-
Notifications
You must be signed in to change notification settings - Fork 207
UseSerilog() disables logging to Azure Diagnostics LogStream #42
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
Comments
I think you need to add .WriteTo.RollingFile(@"D:\home\LogFiles\Application\diagnostics-{Date}.txt", shared: true) |
thanks for the hint: |
@pcreyght yes, this package replaces logger factory and you can see this if you enable |
That would mean going back in time! ;-) . plus I believe ASP.NET Core 2.0 is not working correctly with the
This way the stream is working again! Since the obvious end solution seems to be creating a seperate sink for this specific purpose, and as I understand correctly the issue ( UseSerilog() disables logging to Azure Diagnostics LogStream), is by design, I will close this issue. |
Thanks for the investigation and fix, Paul! I'll list this in the README 👍 |
I am hosting a small logging application in an Azure web App, using the 'microsoft.aspnetcore.all' and 'serilog.aspnetcore' nuget packages
whenever I enable the UseSerilog extension method the application stops writing logs to the azure app logstream.
Is it possible to use Serilog along with the logstream functionality in azure?
The text was updated successfully, but these errors were encountered: