Skip to content

Commit

Permalink
NLog GoogleStackdriverTarget improve handling of System.Reflection (M…
Browse files Browse the repository at this point in the history
…emberInfo is better than MethodInfo)
  • Loading branch information
snakefoot authored and jskeet committed Apr 27, 2020
1 parent db3fb85 commit 0e6d135
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ protected override void InitializeTarget()
jsonSettings.Converters.Add(new Newtonsoft.Json.Converters.StringEnumConverter());
// The default serialization of these reflection types really isn't useful, so
// just call ToString on them instead.
jsonSettings.Converters.Add(new ToStringJsonConverter(typeof(MethodInfo)));
jsonSettings.Converters.Add(new ToStringJsonConverter(typeof(MemberInfo)));
jsonSettings.Converters.Add(new ToStringJsonConverter(typeof(Assembly)));
jsonSettings.Converters.Add(new ToStringJsonConverter(typeof(Module)));

Expand Down

0 comments on commit 0e6d135

Please sign in to comment.