Skip to content

Commit c8f2516

Browse files
committed
Removed default values at configuration
#40
1 parent 4af6624 commit c8f2516

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

src/SplunkLogger/Configurations/HECConfiguration.cs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,30 +16,33 @@ public enum ChannelIdOption
1616
/// <summary>
1717
/// Gets or sets the batch interval in miliseconds.
1818
/// </summary>
19-
public uint BatchIntervalInMiliseconds { get; set; } = 5000; // 5 seconds
19+
public uint BatchIntervalInMiliseconds { get; set; }
2020

2121
/// <summary>
2222
/// Gets or sets the batch size count.
2323
/// </summary>
24-
public uint BatchSizeCount { get; set; } = 10;
24+
public uint BatchSizeCount { get; set; }
2525

2626
/// <summary>
2727
/// Gets or sets the default timeout in miliseconds.
2828
/// </summary>
29-
public int DefaultTimeoutInMiliseconds { get; set; } = 10000; // 10 seconds
29+
public int DefaultTimeoutInMiliseconds { get; set; }
3030

3131
/// <summary>
3232
/// Gets or sets the splunk collector URL.
3333
/// </summary>
3434
public string SplunkCollectorUrl { get; set; }
3535

3636
/// <summary>
37-
/// Gets or sets indication to use or not hec token autentication at query string
37+
/// Gets or sets indication to use or not hec token autentication at query string.
3838
/// </summary>
3939
public bool UseAuthTokenAsQueryString { get; set; }
4040

4141
/// <summary>
42-
/// Gets or sets indication to use or not channel identification when using raw endpoint
42+
/// Gets or sets indication to use or not channel identification when using raw endpoint.
43+
/// It's important to say that Splunk documentation indicates that ChannelId parameter is only
44+
/// required for Splunk versions older than 6.7.0.
45+
/// So if you have earlier version you can supress send this extra data by using <value>ChannelIdOption.None</value>
4346
/// </summary>
4447
public ChannelIdOption ChannelIdType { get; set; } = ChannelIdOption.None;
4548

src/SplunkLogger/Configurations/SplunkLoggerConfiguration.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ public class SplunkLoggerConfiguration
2020
/// <summary>
2121
/// Gets or sets the threshold.
2222
/// </summary>
23-
public LogLevel Threshold { get; set; } = LogLevel.Warning;
23+
public LogLevel Threshold { get; set; }
2424
}
2525
}

0 commit comments

Comments
 (0)