-
-
Notifications
You must be signed in to change notification settings - Fork 207
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2964555
commit befabdb
Showing
3 changed files
with
111 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
using System; | ||
using Sentry.Protocol; | ||
using Serilog.Events; | ||
|
||
namespace Sentry.Serilog | ||
{ | ||
/// <summary> | ||
/// Sentry Options for Serilog logging | ||
/// </summary> | ||
/// <inheritdoc /> | ||
public class SentrySerilogOptions : SentryOptions | ||
{ | ||
/// <summary> | ||
/// Whether to initialize this SDK through this integration | ||
/// </summary> | ||
public bool InitializeSdk { get; set; } = true; | ||
|
||
/// <summary> | ||
/// Minimum log level to send an event. | ||
/// </summary> | ||
/// <remarks> | ||
/// Events with this level or higher will be sent to Sentry. | ||
/// </remarks> | ||
/// <value> | ||
/// The minimum event level. | ||
/// </value> | ||
public LogEventLevel MinimumEventLevel { get; set; } | ||
|
||
/// <summary> | ||
/// Minimum log level to record a breadcrumb. | ||
/// </summary> | ||
/// <remarks>Events with this level or higher will be stored as <see cref="Breadcrumb"/></remarks> | ||
/// <value> | ||
/// The minimum breadcrumb level. | ||
/// </value> | ||
public LogEventLevel MinimumBreadcrumbLevel { get; set; } | ||
|
||
/// <summary> | ||
/// Optional <see cref="IFormatProvider"/> | ||
/// </summary> | ||
public IFormatProvider FormatProvider { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters