-
Notifications
You must be signed in to change notification settings - Fork 44
/
IRollbarDeveloperOptions.cs
77 lines (68 loc) · 2.62 KB
/
IRollbarDeveloperOptions.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
namespace Rollbar
{
using System;
using System.Collections.Generic;
using System.Text;
using Rollbar.Common;
/// <summary>
/// Interface IRollbarDeveloperOptions
/// Implements the <see cref="Rollbar.Common.IReconfigurable{T,TBase}" />
/// </summary>
/// <seealso cref="Rollbar.Common.IReconfigurable{T,TBase}" />
public interface IRollbarDeveloperOptions
: IReconfigurable<IRollbarDeveloperOptions, IRollbarDeveloperOptions>
{
/// <summary>
/// Gets or sets the log level.
/// </summary>
/// <value>The log level.</value>
ErrorLevel LogLevel
{
get; set;
}
/// <summary>
/// Gets or sets a value indicating whether the Rollbar logger, configured with this <see cref="IRollbarDeveloperOptions" />, is enabled.
/// </summary>
/// <value><c>true</c> if enabled; otherwise, <c>false</c>.</value>
/// <remarks>Default: true</remarks>
bool Enabled
{
get; set;
}
/// <summary>
/// Gets or sets a value indicating whether the Rollbar logger will actually transmit the payloads to the Rollbar API server.
/// </summary>
/// <value><c>true</c> if transmit; otherwise, <c>false</c>.</value>
/// <remarks>Should the SDK actually perform HTTP requests to Rollbar API. This is useful if you are trying to run Rollbar in dry run mode for development or tests.
/// If this is false then we do all of the report processing except making the post request at the end of the pipeline.
/// Default: true</remarks>
bool Transmit
{
get; set;
}
/// <summary>
/// Gets or sets a value indicating whether to rethrow exceptions after reporting them to Rollbar API.
/// </summary>
/// <value><c>true</c> if to rethrow exceptions after reporting them to Rollbar API; otherwise, <c>false</c>.</value>
bool RethrowExceptionsAfterReporting
{
get; set;
}
/// <summary>
/// Gets or sets a value indicating whether to wrap reported exception with a Rollbar exception.
/// </summary>
/// <value><c>true</c> if to wrap reported exception with a Rollbar exception; otherwise, <c>false</c>.</value>
bool WrapReportedExceptionWithRollbarException
{
get; set;
}
/// <summary>
/// Gets the payload POST timeout.
/// </summary>
/// <value>The payload POST timeout.</value>
TimeSpan PayloadPostTimeout
{
get;
}
}
}