I'm aware of some free/commercial visualizer of structured logging, like seq, retrace. The problem is I don't want to directly add as sinks, because I don't want every single logging action to involve sending out an Http request to the log server. Instead, I'd like to log to local files as quickly as possible, while still have the ability to review and search the logged file content in a structured way.
So is there a practical solution to this? Thanks.
Browse to the directory containing the log files you want to view. Select a log file and click Open. If you are using a version prior to 12.2, see Paths in Earlier Versions. Click the file in the left pane of the Log Viewer to view the details.
Serilog is an easy-to-set-up logging library for . NET with a clear API. In the long list of the Serilog's features you can find: Support of structured logging, which allows logs to be treated as data sets rather than text. Compatibility with asynchronous applications and systems.
The LogContext Serilog. Context. LogContext can be used to dynamically add and remove properties from the ambient "execution context"; for example, all messages written during a transaction might carry the id of that transaction, and so-on.
Serilog sink that writes to console with high-performance non-blocking output. Supports plaintext and JSON output but does not support themes and colors. This sink uses a background channel with a single text buffer and async writes to remove all blocking and lock contention to the console output stream.
I tried many apps but the TailBlazer seems to be the best for me, it's free and really easy to use. Here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With