Plisky.Diagnostics - Documentation.
Plisky.Diagnostics is the assembly hosting Bilge, a .net trace library dating back to the first days of .net being available.
Bilge uses methods to write trace information and handlers to disperse this information. While it can be used to write to the filesystem or logs its most commonly used to write via the network to the dedicated viewer - FlimFlam. FlimFlam is used to display and interrogate trace logs and is designed to work with Bilge.
Guidance Documents
- Quick Start
- Release Notes
- Flim Flam
- Bilge Reference
- Handlers
- Dynamic Configuration
- Troubleshooting
- Performance Analysis
Developer Focused Trace
Bilge and FlimFlam are designed to be developer focused trace - providing real time trace information from your application to aid in debugging production problems.
The goals of the implementation are:
- Default To Least Impact In Production
- Empower the developer to resolve complex issues
- Expect to be the cross cutting trace library when used
These goals shape the way that Bilge is delivered - having most settings off by default you will find you need to configure trace before it is written.
Typically applications require both a logging solution and a trace solution but the purposes and approaches are very different, most notably trace expects to be off in production unless something goes wrong or you are looking out for a problem. Application logging on the other hand is often on in production and is more aimed at calling out issues and metrics rather than identifying root cause of problems.
Due to the different use cases the priority for Bilge is to empower developers to get to root cause rather than say performance or low impact when turned on.
Bilge and Handlers
Bilge is the primary trace class, in the Plisky.Diagnostics nuget package. This class contains the logging infrastructure but only contains a single, simple handler. Handlers are the receivers of the trace information and are responsible for storing that information.
The main source of handlers is the Plisky.Diagnostics.Listeners nuget package which holds the most common handlers. The most common handlers are the TCP handler, used to stream trace information to the FlimFlam app and the RollingFileSystemHandler used to log trace out to a file system. For more info on Handlers see this page Handlers.