Skip to content

Commit c6a5e50

Browse files
author
Josh DeGraw
committed
Removed some advanced options from SentryNLogOptions
1 parent 4f6ce93 commit c6a5e50

File tree

1 file changed

+0
-47
lines changed

1 file changed

+0
-47
lines changed

src/Sentry.NLog/SentryNLogOptions.cs

Lines changed: 0 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ namespace Sentry.NLog
1717
[NLogConfigurationItem]
1818
public class SentryNLogOptions : SentryOptions
1919
{
20-
2120
/// <summary>
2221
/// How many seconds to wait after triggering Logmanager.Shutdown() before just shutting down the
2322
/// Sentry sdk.
@@ -68,51 +67,5 @@ public int ShutdownTimeoutSeconds
6867

6968
[Advanced]
7069
public bool InitializeSdk { get; set; } = true;
71-
72-
[Advanced]
73-
public bool EnableDiagnosticConsoleLogging
74-
{
75-
get => _enableDiagnosticsLogging;
76-
77-
set
78-
{
79-
if (value)
80-
{
81-
Debug = true;
82-
DiagnosticLogger = _diagnosticsLogger.Value;
83-
_enableDiagnosticsLogging = true;
84-
}
85-
else if (_enableDiagnosticsLogging)
86-
{
87-
Debug = false;
88-
DiagnosticLogger = null;
89-
EnableDiagnosticConsoleLogging = false;
90-
}
91-
}
92-
}
93-
94-
[Advanced]
95-
public bool EnableDuplicateEventDetection
96-
{
97-
get => _enableDuplicateEventDetection;
98-
99-
set
100-
{
101-
if (value == false)
102-
{
103-
this.DisableDuplicateEventDetection();
104-
}
105-
106-
_enableDuplicateEventDetection = value;
107-
}
108-
}
109-
110-
111-
private bool _enableDuplicateEventDetection = true;
112-
private bool _enableDiagnosticsLogging;
113-
114-
private static readonly Lazy<IDiagnosticLogger> _diagnosticsLogger =
115-
new Lazy<IDiagnosticLogger>(() => new ConsoleDiagnosticLogger(Protocol.SentryLevel.Debug));
116-
11770
}
11871
}

0 commit comments

Comments
 (0)