@@ -32,13 +32,14 @@ public static LoggerConfiguration Exceptionless(
32
32
if ( apiKey == null )
33
33
throw new ArgumentNullException ( nameof ( apiKey ) ) ;
34
34
35
- return loggerConfiguration . Sink ( new ExceptionlessSink ( apiKey , null , additionalOperation , includeProperties ) , restrictedToMinimumLevel ) ;
35
+ return loggerConfiguration . Sink ( new ExceptionlessSink ( apiKey , null , null , additionalOperation , includeProperties ) , restrictedToMinimumLevel ) ;
36
36
}
37
-
37
+
38
38
/// <summary>Creates a new Exceptionless sink with the specified <paramref name="apiKey"/>.</summary>
39
39
/// <param name="loggerConfiguration">The logger configuration.</param>
40
40
/// <param name="apiKey">The API key that will be used when sending events to the server.</param>
41
41
/// <param name="serverUrl">Optional URL of the server events will be sent to.</param>
42
+ /// <param name="defaultTags">Default tags to be added to every log event.</param>
42
43
/// <param name="additionalOperation">Any additional operation to run against the build exceptions</param>
43
44
/// <param name="includeProperties">If false it suppressed sending the Serilog properties to Exceptionless</param>
44
45
/// <param name="restrictedToMinimumLevel">The minimum log event level required in order to write an event to the sink.</param>
@@ -48,6 +49,7 @@ public static LoggerConfiguration Exceptionless(
48
49
this LoggerSinkConfiguration loggerConfiguration ,
49
50
string apiKey ,
50
51
string serverUrl = null ,
52
+ string [ ] defaultTags = null ,
51
53
Func < EventBuilder , EventBuilder > additionalOperation = null ,
52
54
bool includeProperties = true ,
53
55
LogEventLevel restrictedToMinimumLevel = LevelAlias . Minimum
@@ -58,7 +60,7 @@ public static LoggerConfiguration Exceptionless(
58
60
if ( apiKey == null )
59
61
throw new ArgumentNullException ( nameof ( apiKey ) ) ;
60
62
61
- return loggerConfiguration . Sink ( new ExceptionlessSink ( apiKey , serverUrl , additionalOperation , includeProperties ) , restrictedToMinimumLevel ) ;
63
+ return loggerConfiguration . Sink ( new ExceptionlessSink ( apiKey , serverUrl , defaultTags , additionalOperation , includeProperties ) , restrictedToMinimumLevel ) ;
62
64
}
63
65
64
66
/// <summary>Creates a new Exceptionless sink.</summary>
0 commit comments