You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
System.InvalidCastException
HResult=0x80004002
Message=Invalid cast from 'System.String' to 'System.String[]'.
Source=mscorlib
StackTrace:
at System.Convert.DefaultToType(IConvertible value, Type targetType, IFormatProvider provider)
at System.String.System.IConvertible.ToType(Type type, IFormatProvider provider)
at System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider)
at System.Convert.ChangeType(Object value, Type conversionType)
at Serilog.Settings.KeyValuePairs.SettingValueConversions.ConvertToType(String value, Type toType)
at Serilog.Settings.KeyValuePairs.KeyValuePairSettings.ConvertOrLookupByName(String valueOrSwitchName, Type type, IReadOnlyDictionary2 declaredSwitches) at Serilog.Settings.KeyValuePairs.KeyValuePairSettings.<>c__DisplayClass26_0.<ApplyDirectives>b__1(<>f__AnonymousType32 <>h__TransparentIdentifier0)
at System.Linq.Enumerable.<>c__DisplayClass7_03.<CombineSelectors>b__0(TSource x) at System.Linq.Enumerable.WhereSelectEnumerableIterator2.MoveNext()
at System.Collections.Generic.List1..ctor(IEnumerable1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable1 source) at Serilog.Settings.KeyValuePairs.KeyValuePairSettings.ApplyDirectives(List1 directives, IList1 configurationMethods, Object loggerConfigMethod, IReadOnlyDictionary2 declaredSwitches)
at Serilog.Settings.KeyValuePairs.KeyValuePairSettings.Configure(LoggerConfiguration loggerConfiguration)
at Serilog.Configuration.LoggerSettingsConfiguration.Settings(ILoggerSettings settings)
at Serilog.Configuration.LoggerSettingsConfiguration.KeyValuePairs(IEnumerable`1 settings)
at Serilog.Settings.AppSettings.AppSettingsSettings.Configure(LoggerConfiguration loggerConfiguration)
at Serilog.Configuration.LoggerSettingsConfiguration.Settings(ILoggerSettings settings)
at Serilog.AppSettingsLoggerConfigurationExtensions.AppSettings(LoggerSettingsConfiguration settingConfiguration, String settingPrefix, String filePath)
The text was updated successfully, but these errors were encountered:
<add key="serilog:write-to:DatadogLogs.tags" value="name:dev,owner:trading,application:fti" />
trying to read above entry generates error:
System.InvalidCastException
HResult=0x80004002
Message=Invalid cast from 'System.String' to 'System.String[]'.
Source=mscorlib
StackTrace:
at System.Convert.DefaultToType(IConvertible value, Type targetType, IFormatProvider provider)
at System.String.System.IConvertible.ToType(Type type, IFormatProvider provider)
at System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider)
at System.Convert.ChangeType(Object value, Type conversionType)
at Serilog.Settings.KeyValuePairs.SettingValueConversions.ConvertToType(String value, Type toType)
at Serilog.Settings.KeyValuePairs.KeyValuePairSettings.ConvertOrLookupByName(String valueOrSwitchName, Type type, IReadOnlyDictionary
2 declaredSwitches) at Serilog.Settings.KeyValuePairs.KeyValuePairSettings.<>c__DisplayClass26_0.<ApplyDirectives>b__1(<>f__AnonymousType3
2 <>h__TransparentIdentifier0)at System.Linq.Enumerable.<>c__DisplayClass7_0
3.<CombineSelectors>b__0(TSource x) at System.Linq.Enumerable.WhereSelectEnumerableIterator
2.MoveNext()at System.Collections.Generic.List
1..ctor(IEnumerable
1 collection)at System.Linq.Enumerable.ToList[TSource](IEnumerable
1 source) at Serilog.Settings.KeyValuePairs.KeyValuePairSettings.ApplyDirectives(List
1 directives, IList1 configurationMethods, Object loggerConfigMethod, IReadOnlyDictionary
2 declaredSwitches)at Serilog.Settings.KeyValuePairs.KeyValuePairSettings.Configure(LoggerConfiguration loggerConfiguration)
at Serilog.Configuration.LoggerSettingsConfiguration.Settings(ILoggerSettings settings)
at Serilog.Configuration.LoggerSettingsConfiguration.KeyValuePairs(IEnumerable`1 settings)
at Serilog.Settings.AppSettings.AppSettingsSettings.Configure(LoggerConfiguration loggerConfiguration)
at Serilog.Configuration.LoggerSettingsConfiguration.Settings(ILoggerSettings settings)
at Serilog.AppSettingsLoggerConfigurationExtensions.AppSettings(LoggerSettingsConfiguration settingConfiguration, String settingPrefix, String filePath)
The text was updated successfully, but these errors were encountered: