Sentry.Extensions.Logging 1.0.0 Prefix Reserved

There is a newer version of this package available.
See the version list below for details.
Install-Package Sentry.Extensions.Logging -Version 1.0.0
dotnet add package Sentry.Extensions.Logging --version 1.0.0
<PackageReference Include="Sentry.Extensions.Logging" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Sentry.Extensions.Logging --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Sentry.Extensions.Logging, 1.0.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Sentry.Extensions.Logging as a Cake Addin
#addin nuget:?package=Sentry.Extensions.Logging&version=1.0.0

// Install Sentry.Extensions.Logging as a Cake Tool
#tool nuget:?package=Sentry.Extensions.Logging&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Below you will find a basic introduction to the SDK and its API.

For more details, please: refer to the SDK documentation

Description

Integration of Microsoft.Extensions.Logging with Sentry

Depends on the main Sentry SDK and makes all its features available to use.

Main features

  • BeginScope data added to scope
  • LogInformation or higher added as breadcrumb. Sent with next events.
  • LogError or higher automatically captures an event
  • Strong named

By default, LogError or LogCritical by will send an event to Sentry. That can be configured to any level or disable altogether.

Log messages of level Information or higher will be kept as breadcrumbs and if an event is sent, all breadcrumbs from that transaction are included.

These levels can be configured so that the level you define, tracks breadcrumbs, sends events or completely disable it.

That means that log mesages logged by you or the framework, related to the failed transaction, will be added to the event!

Sample:


 using (var loggerFactory = new LoggerFactory()
            .AddConsole(LogLevel.Trace)
            .AddSentry(o =>
            {
                // Initialize the SDK, alternative to relying on previously called: `using(SentrySdk.Init)`:
                // this is useful when Logging is the first or is the only integration enabled:
                o.Dsn = "https://5fd7a6cda8444965bade9ccfd3df9882@sentry.io/1188141";
                o.MaxBreadcrumbs = 150; // Increasing from default 100

                // Optionally configure options: The default values are:
                o.MinimumBreadcrumbLevel = LogLevel.Information; // It requires at least this level to store breadcrumb
                o.MinimumEventLevel = LogLevel.Error; // This level or above will result in event sent to Sentry
            }))
        {
            var logger = loggerFactory.CreateLogger<Program>();

            logger.LogTrace("1 - By *default* this log level is ignored by Sentry.");

            logger.LogInformation("2 - Information messages are stored as Breadcrumb, sent with the next event.");

            logger.LogError("3 - This generates an event, captured by sentry and includes breadcrumbs (2) tracked in this transaction.");

            using (logger.BeginScope(new Dictionary<string, string>
                {
                    {"A", "some value"},
                    {"B", "more value"},
                }))
            {
                logger.LogWarning("4 - Breadcrumb that only exists inside this scope");

                logger.LogError("5 - An event that includes the scoped key-value (A, B) above and also the breadcrumbs: (2, 4) and event (3)");
            }
        }
    }
}

NuGet packages (5)

Showing the top 5 NuGet packages that depend on Sentry.Extensions.Logging:

Package Downloads
Sentry.AspNetCore

Official ASP.NET Core integration for Sentry - Open-source error tracking that helps developers monitor and fix crashes in real time.

BusManager

This client library for fork with bus data. Project is opensource. Repository https://github.com/KDEGitHub/BusManager

MariCommands.Sentry

MariCommands integration for Sentry - Open-source error tracking that helps developers monitor and fix crashes in real time.

WCloud.Framework.Logging

Package Description

HyperaiShell.App

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.10.0 1,295 10/15/2021
3.9.4 21,118 9/29/2021
3.9.3 18,009 9/21/2021
3.9.2 27,755 9/10/2021
3.9.1 1,443 9/9/2021
3.9.0 40,072 8/27/2021
3.8.3 128,615 7/25/2021
3.8.2 33,492 7/17/2021
3.8.1 5,372 7/15/2021
3.8.0 24,434 7/14/2021
3.7.0 24,129 7/10/2021
3.6.1 35,760 7/2/2021
3.6.0 41,247 6/23/2021
3.6.0-alpha.2 95 6/18/2021
3.6.0-alpha.1 166 6/11/2021
3.5.0 109,111 6/7/2021
3.4.0 38,089 5/31/2021
3.4.0-beta.0 64 5/27/2021
3.3.5-beta.0 1,324 5/13/2021
3.3.4 225,198 4/26/2021
3.3.3 2,819 4/23/2021
3.3.2 8,544 4/23/2021
3.3.1 142,866 4/5/2021
3.3.0 21,422 4/3/2021
3.2.0 31,171 3/26/2021
3.1.0 140,753 3/10/2021
3.0.8 26,675 3/4/2021
3.0.7 68,538 2/20/2021
3.0.6 35,359 2/14/2021
3.0.5 18,320 2/9/2021
3.0.4 9,994 2/8/2021
3.0.3 35,340 2/3/2021
3.0.2 9,976 2/3/2021
3.0.1 25,493 1/29/2021
3.0.0 10,433 1/28/2021
3.0.0-beta.0 325 1/20/2021
3.0.0-alpha.11 249 1/15/2021
3.0.0-alpha.10 1,495 1/10/2021
3.0.0-alpha.9 1,609 12/29/2020
3.0.0-alpha.8 709 12/25/2020
3.0.0-alpha.7 2,716 12/16/2020
3.0.0-alpha.6 1,255 11/30/2020
3.0.0-alpha.5 3,152 11/21/2020
3.0.0-alpha.4 1,674 11/2/2020
3.0.0-alpha.3 129 10/29/2020
3.0.0-alpha.2 239 10/21/2020
3.0.0-alpha.1 187 10/16/2020
3.0.0-alpha.0 592 9/25/2020
2.2.0-alpha 1,118 9/19/2020
2.1.8 459,875 11/21/2020
2.1.6 694,944 8/20/2020
2.1.5 197,299 7/27/2020
2.1.5-beta 2,548 6/30/2020
2.1.4 233,739 6/25/2020
2.1.3 325,730 6/5/2020
2.1.2-beta5 3,949 5/19/2020
2.1.2-beta4 1,731 5/12/2020
2.1.2-beta3 846 5/7/2020
2.1.2-beta2 7,709 4/16/2020
2.1.2-beta 1,997 3/31/2020
2.1.1 583,420 3/19/2020
2.1.0 244,329 2/24/2020
2.0.3 87,276 2/12/2020
2.0.2 20,376 2/8/2020
2.0.1 66,372 1/28/2020
2.0.0 1,787 1/28/2020
2.0.0-beta8 20,487 1/15/2020
2.0.0-beta7 107,106 12/17/2019
2.0.0-beta6 92,230 10/31/2019
2.0.0-beta5 5,859 10/29/2019
2.0.0-beta4 45,941 9/4/2019
2.0.0-beta3 14,712 7/26/2019
2.0.0-beta2 3,393 6/9/2019
2.0.0-beta 1,846 6/4/2019
1.2.1-beta 550 5/27/2019
1.2.0 1,211,014 5/23/2019
1.1.3-beta4 708 5/15/2019
1.1.3-beta3 487 5/13/2019
1.1.3-beta2 2,035 3/28/2019
1.1.3-beta 3,277 2/11/2019
1.1.2 328,259 1/16/2019
1.1.2-beta 1,772 1/8/2019
1.1.1 15,396 1/5/2019
1.1.0 49,274 12/5/2018
1.0.1-beta5 1,025 12/5/2018
1.0.1-beta4 1,632 12/3/2018
1.0.1-beta3 13,012 11/15/2018
1.0.1-beta2 1,518 11/14/2018
1.0.1-beta 14,945 10/24/2018
1.0.0 186,532 10/2/2018
1.0.0-rc2 20,236 9/7/2018
1.0.0-rc 4,161 8/24/2018
0.0.1-preview5 4,913 8/5/2018
0.0.1-preview4 3,448 7/30/2018
0.0.1-preview3 4,055 7/17/2018
0.0.1-preview2 4,623 7/3/2018
0.0.1-preview1 1,157 6/28/2018