If someone can please help me with my Serilog configuration. I would like to know is it possible to configure the rolling file sink to always output a file with a valid JSON. The file structure has to be an array of JSON items which looks like this:
If the log file is empty, the contents should be:
[]
If the log file stores a single item, the contents should be:
[{some.json}]
If the log file stores n items, then the contents should be:
[{some json}, {...}, {n-th json}]
The log file should never look like:
[{some json},
or
{some json}
{some json}
or
{some json},
{some json},
Thanks in advance.