Logtail 0.2.3
This package has been deprecated. Please, switch to BetterStack.Logs.NLog if you're using NLog logging platform, or to BetterStack.Logs.Serilog if you're using Serilog logging library.
See the version list below for details.
dotnet add package Logtail --version 0.2.3
NuGet\Install-Package Logtail -Version 0.2.3
<PackageReference Include="Logtail" Version="0.2.3" />
paket add Logtail --version 0.2.3
#r "nuget: Logtail, 0.2.3"
// Install Logtail as a Cake Addin #addin nuget:?package=Logtail&version=0.2.3 // Install Logtail as a Cake Tool #tool nuget:?package=Logtail&version=0.2.3
Logtail - .NET Logging Made Easy
Collect logs directly from your .NET applications.
Logtail is a hosted service that centralizes all of your logs into one place. Allowing for analysis, correlation and filtering with SQL. Actionable Grafana dashboards and collaboration come built-in. Logtail works with any language or platform and any data source.
Features
- Simple integration. Built on well-known NLog logging library.
- Support for structured logging and events.
- Automatically captures useful context.
- Performant, light weight, with a thoughtful design.
Supported language versions
- .NET 5 or newer (to use the example project .NET 6 is required)
Installation
In Visual Studio
In Visual Studio, open NuGet Package Manager Console by clicking Tools → NuGet Package Manager → Package Manager Console
In the opened console run the following command:
Install-Package Logtail
Then run the following command to install NLog.Extensions.Logging
package:
Install-Package NLog.Extensions.Logging
In PowerShell command line
To install the Logtail
package using PowerShell, run the following command in your project’s directory:
dotnet add package Logtail
Then install NLog.Extensions.Logging
package using the following command:
dotnet add package NLog.Extensions.Logging
Example project
To help you get started with using Logtail in your .NET projects, we have prepared a simple program that showcases the usage of Logtail logger.
Download and install the example project
You can download the example project from GitHub directly or you can clone it to a select directory.
Run the example project using Visual Studio
Replace <source-token>
with your actual source token in the nlog.config
file. You can find your source token by going to logtail.com → sources → edit.
Open the .csproj
file in the Visual Studio. Then click on the green play button DotNetLogtail
or press F5 to run the application.
You should see the following output:
All done! Now, you can check Logtail to see your logs
Run in the command line
Replace <source-token>
with your actual source token in the nlog.config
file. You can find your source token by going to logtail.com → sources → edit.
Open the command line in the projects directory and enter the following command:
dotnet run
You should see the following output:
All done! Now, you can check Logtail to see your logs
Explore how example project works
Learn how to setup .NET logging by exploring the workings of the example project in detail.
Get in touch
Have any questions? Please explore the Logtail documentation or contact our support.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Newtonsoft.Json (>= 13.0.1)
- NLog (>= 4.7.11)
-
.NETStandard 2.1
- Newtonsoft.Json (>= 13.0.1)
- NLog (>= 4.7.11)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on Logtail:
Package | Downloads |
---|---|
Mystik.Yggdrasil.Server
Package Description |
|
Tharga.Logging.Logtail
Package Description |
|
Serilog.Sinks.Logtail
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.