Serilog.Sinks.LlamaLogger 24.1.3.3

There is a newer version of this package available.
See the version list below for details.
dotnet add package Serilog.Sinks.LlamaLogger --version 24.1.3.3
                    
NuGet\Install-Package Serilog.Sinks.LlamaLogger -Version 24.1.3.3
                    
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="Serilog.Sinks.LlamaLogger" Version="24.1.3.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Serilog.Sinks.LlamaLogger" Version="24.1.3.3" />
                    
Directory.Packages.props
<PackageReference Include="Serilog.Sinks.LlamaLogger" />
                    
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 Serilog.Sinks.LlamaLogger --version 24.1.3.3
                    
#r "nuget: Serilog.Sinks.LlamaLogger, 24.1.3.3"
                    
#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 Serilog.Sinks.LlamaLogger@24.1.3.3
                    
#: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=Serilog.Sinks.LlamaLogger&version=24.1.3.3
                    
Install as a Cake Addin
#tool nuget:?package=Serilog.Sinks.LlamaLogger&version=24.1.3.3
                    
Install as a Cake Tool

Welcome to Llama Logger

Using only a few lines of code, you can start tracking and managing your exceptions online. All of your exceptions will be accessible in one place with the option to receive email notifications when new exceptions arrive.

Go to www.llamalogger.com to get started.

Getting Started

  1. Create your account at www.llamalogger.com
  2. Log in and create a new project
  3. Copy your project's API key
  4. Add the Serilog.Sinks.LlamaLogger NuGet package to your solution
  5. Call the WriteTo.LlamaLogger("yourapikey") method and you're ready to go

Note: Only Warning, Error, and Fatal exceptions are logged to Llama Logger

using  Serilog.Sinks.LlamaLogger;  

string apikey =  "<project API key>";  //Your project API key from your Llama Logger account  

var logger = new LoggerConfiguration().WriteTo.LlamaLogger("yourapikey").CreateLogger();

try  
{  
	throw  new  InvalidOperationException("Oops!");  
}  
catch(Exception ex)  
{ 
	logger.Error(ex);
}

Customize Log Entries

You can customize log entries before they are sent to the server by adding custom data and attachments.

Global Customization

var logger = new LoggerConfiguration().WriteTo.LlamaLogger("yourapikey", (llamalogger) => {
    llamalogger.AddCustomData("Server", "Server001");  //This data will be included with every exception
}).CreateLogger();

Exception Specific Customization

var logger = new LoggerConfiguration().WriteTo.LlamaLogger("yourapikey", (llamalogger) => {
    llamalogger.CustomizeLogEntry += (sender, e) =>
    {
        e.LogEntry.AddCustomData("UserName", "Administrator");
        e.LogEntry.AddCustomData("IP Address", "99.88.77.66");

        byte[] screenshot = GetScreenshotData(); //Get an array of data
        e.LogEntry.AddAttachment("Screenshot.png", screenshot);
    };
}).CreateLogger();
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  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.  net9.0 was computed.  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. 
.NET Framework net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 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
25.1.3.2 133 7/6/2025
25.1.3.1 127 7/2/2025
25.1.2.1-beta9 130 6/24/2025
25.1.2.1-beta8 83 6/20/2025
25.1.2.1-beta7 127 6/20/2025
25.1.2.1-beta6 133 6/17/2025
25.1.2.1-beta5 276 6/12/2025
25.1.2.1-beta4 281 6/12/2025
24.2.8.1 138 6/23/2025
24.2.7.1 392 5/14/2025
24.2.6.1 492 3/25/2025
24.2.5.2 119 2/26/2025
24.2.5.1 125 2/19/2025
24.2.3.4 132 2/13/2025
24.2.3.3 130 2/12/2025
24.2.3.2 144 2/11/2025
24.2.3.1 137 12/13/2024
24.2.2.1-beta 106 11/25/2024
24.1.13.1 134 6/23/2025
24.1.12.1 225 5/14/2025
24.1.11.1 168 3/30/2025
24.1.10.1 125 2/18/2025
24.1.9.1 121 1/24/2025
24.1.8.1 120 12/23/2024
24.1.7.1 136 11/3/2024
24.1.6.1 138 9/24/2024
24.1.5.2 119 9/18/2024
24.1.5.1 149 8/16/2024
24.1.4.1 140 7/22/2024
24.1.3.3 114 7/10/2024
23.2.12.1 110 2/26/2025
23.2.11.1 116 2/26/2025
23.2.10.1 128 11/4/2024
23.2.9.1 116 9/24/2024
23.2.8.1 151 8/16/2024
23.2.7.1 113 8/6/2024