Replies: 1 comment
-
This is more of a Serilog question but I'll answer briefly. With structured logging, there are various consumers that have been built with this format in mind e.g. Filebeat can be used to pick up the json logs and send them to elastic search. Alternatively, instead of using the file logger, you can send logs directly to a consumer e.g. You can send logs directly to Seq. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In my output file, errors logging as this:
But this is not a valid JSON, because it has multiple root elements. It's very difficult to pretty print and read.
How can i generate a valid JSON (array of objects) like this:
My current logger configuration is this:
Relevant issues i inspected on Serilog repository:
Beta Was this translation helpful? Give feedback.
All reactions