Logdash 0.0.5

dotnet add package Logdash --version 0.0.5
                    
NuGet\Install-Package Logdash -Version 0.0.5
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Logdash" Version="0.0.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Logdash" Version="0.0.5" />
                    
Directory.Packages.props
<PackageReference Include="Logdash" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Logdash --version 0.0.5
                    
#r "nuget: Logdash, 0.0.5"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Logdash@0.0.5
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Logdash&version=0.0.5
                    
Install as a Cake Addin
#tool nuget:?package=Logdash&version=0.0.5
                    
Install as a Cake Tool

logdash - .NET SDK

Logdash is a zero-config observability platform. This package serves an javascript interface to use it.

Pre-requisites

Setup your free project in less than 2 minutes at logdash.io

Installation

dotnet add package Logdash

Setup

There are 2 ways to register Logdash depending on use-case. The most common one is for AspNetCore using it's Dependency Injection. You can consult Example programs attached to this repo, or continue reading for quick recap.

Setup - AspNetCore

using Logdash;
using Logdash.Models;

builder.Services.AddLogdash(new InitializationParams("INSERT_API_KEY"));

Now you can receive your Logdash in Controllers or Services via DI:

public class InfoService(ILogdashLogger logdash, ILogdashMetrics metrics)
{
    /// ...
}

Setup - Without AspNetCore DI

using Logdash;
using Logdash.Models;

var builder = new LogdashBuilder();
var (logdash, metrics) = builder.WithHttpClient(new HttpClient())
    .WithInitializationParams(new InitializationParams("INSERT_API_KEY"))
    .Build();

Logging and Metrics

After you're done with the setup, you can start logging or using metrics using Logdash

Logging

logdash.Debug("This is a debug message");
logdash.Error("This is an error message");
logdash.Info("This is info message");
logdash.Verbose("This is verbose message");
logdash.Http("This is http message");
logdash.Silly("This is silly message");
logdash.Warn("This is warn message");

logdash.Info("Hello", "From", "LogDash");

Metrics

metrics.Set("key", 2);
metrics.Mutate("key", 3);

Configuration

Parameter Required Default Description
apiKey no - Api key used to authorize against logdash servers. If you don't provide one, logs will be logged into local console only
host no - Custom API host, useful with self-hosted instances
verbose no - Useful for debugging purposes

License

This project is licensed under the MIT License.

Contributing

Contributions are welcome! Feel free to open issues or submit pull requests.

Support

If you encounter any issues, please open an issue on GitHub or let us know at contact@logdash.io.

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.0.5 148 6/6/2025
0.0.4 135 6/6/2025
0.0.3 144 6/6/2025
0.0.2 170 6/5/2025
0.0.1 163 6/5/2025