.NET
How to instrument Tailed from .NET with just two lines of code.
Setup
Install the Tailed.Console nuget package:
Basic Usage
You will need to create a new ConsoleSession
and then start it:
Choose the right point at which to start the ConsoleSession
. For example, if you're asking the user for credentials or a connection string, you'll want to start the session after that point so you don't stream those details to everyone viewing the session.
Customization Options
The constructor on the ConsoleSession
allows you to customize:
A custom hostname to use in the session URL (instead of
tailed.live
).
If you choose to call StopAsync()
yourself, an override exists that allows you to specify the number of milliseconds to wait to allow buffers to be flushed. This defaults to 2000
ms.
Last updated