@@ -32,13 +32,14 @@ public static LoggerConfiguration Exceptionless(
3232 if ( apiKey == null )
3333 throw new ArgumentNullException ( nameof ( apiKey ) ) ;
3434
35- return loggerConfiguration . Sink ( new ExceptionlessSink ( apiKey , null , additionalOperation , includeProperties ) , restrictedToMinimumLevel ) ;
35+ return loggerConfiguration . Sink ( new ExceptionlessSink ( apiKey , null , null , additionalOperation , includeProperties ) , restrictedToMinimumLevel ) ;
3636 }
37-
37+
3838 /// <summary>Creates a new Exceptionless sink with the specified <paramref name="apiKey"/>.</summary>
3939 /// <param name="loggerConfiguration">The logger configuration.</param>
4040 /// <param name="apiKey">The API key that will be used when sending events to the server.</param>
4141 /// <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>
4243 /// <param name="additionalOperation">Any additional operation to run against the build exceptions</param>
4344 /// <param name="includeProperties">If false it suppressed sending the Serilog properties to Exceptionless</param>
4445 /// <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(
4849 this LoggerSinkConfiguration loggerConfiguration ,
4950 string apiKey ,
5051 string serverUrl = null ,
52+ string [ ] defaultTags = null ,
5153 Func < EventBuilder , EventBuilder > additionalOperation = null ,
5254 bool includeProperties = true ,
5355 LogEventLevel restrictedToMinimumLevel = LevelAlias . Minimum
@@ -58,7 +60,7 @@ public static LoggerConfiguration Exceptionless(
5860 if ( apiKey == null )
5961 throw new ArgumentNullException ( nameof ( apiKey ) ) ;
6062
61- return loggerConfiguration . Sink ( new ExceptionlessSink ( apiKey , serverUrl , additionalOperation , includeProperties ) , restrictedToMinimumLevel ) ;
63+ return loggerConfiguration . Sink ( new ExceptionlessSink ( apiKey , serverUrl , defaultTags , additionalOperation , includeProperties ) , restrictedToMinimumLevel ) ;
6264 }
6365
6466 /// <summary>Creates a new Exceptionless sink.</summary>
0 commit comments