diff --git a/samples/Exceptionless.SampleMvc/Web.config b/samples/Exceptionless.SampleMvc/Web.config index eb5fdeb9..c8c9eaa3 100644 --- a/samples/Exceptionless.SampleMvc/Web.config +++ b/samples/Exceptionless.SampleMvc/Web.config @@ -3,6 +3,7 @@ + diff --git a/src/Exceptionless/Extensions/ExceptionlessConfigurationExtensions.cs b/src/Exceptionless/Extensions/ExceptionlessConfigurationExtensions.cs index 2f469598..6050d569 100644 --- a/src/Exceptionless/Extensions/ExceptionlessConfigurationExtensions.cs +++ b/src/Exceptionless/Extensions/ExceptionlessConfigurationExtensions.cs @@ -390,6 +390,11 @@ public static void ReadFromAppSettings(this ExceptionlessConfiguration config) { string serverUrl = ConfigurationManager.AppSettings["Exceptionless:ServerUrl"]; if (!String.IsNullOrEmpty(serverUrl)) config.ServerUrl = serverUrl; + + string defaultTags = ConfigurationManager.AppSettings["Exceptionless:DefaultTags"]; + if (!String.IsNullOrEmpty(defaultTags)) + foreach (var tag in defaultTags.SplitAndTrim(',').Where(tag => !String.IsNullOrEmpty(tag))) + config.DefaultTags.Add(tag); } #endif