Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I use some viewer to review and search for serilog logging files?

Tags:

.net

logging

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.

like image 207
Nico Avatar asked Sep 24 '18 02:09

Nico


People also ask

How do I use log viewer?

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.

What is Serilog logging?

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.

What is Serilog log context?

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.

What is a Serilog sink?

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.


1 Answers

I tried many apps but the TailBlazer seems to be the best for me, it's free and really easy to use. Here

like image 167
Ehsan Kiani Avatar answered Sep 23 '22 00:09

Ehsan Kiani