-
Notifications
You must be signed in to change notification settings - Fork 125
How to write JSON to file? #4
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 found https://github.com/nblumhardt/serilog-sinks-json and it is working. However I still think serilog should support this officially.
|
Hi! Yes, we've been working through a few changes to support this here. The API will look like: .WriteTo.File(new JsonFormatter(), "C:\\myapp.json") The overload accepting an Regards, |
Hello, how about you are fetching the with ReadFrom.Appsettings. how do I use new JsonFormatter |
Is there a way to write the structured log to file (in json)?
The text was updated successfully, but these errors were encountered: