Closed Cloud33 closed 1 year ago
Reading Serilog log files is no different than reading any other text-based file - for example, use StreamReader
and parse line-by-line.
It's not clear what you mean about formatting, but I think this question would better belong on StackOverflow, where it's likely to get far more eyeballs on it 👍
I want to read the log file generated by serilog:
The output template I am using:
{Timestamp:yyyy-MM-dd HH:mm-ss.fff }[{Level:u3}] {Message:lj}{NewLine}{Exception}
How can I quickly read log files and format them?
Thank you