I'm seeing some strange behavior where messages are being double printed:
//start of json log
{"appName":"PvaTest","level":"ERROR","messageObject":"test","renderedMessage":"test","timestampUtc":"2019-02-21T17:37:44.1051799Z","logger":"test","thread":"1","exceptionObject":{"ClassName":"System.Exception","Message":"test","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":null,"RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":null,"HResult":-2146233088,"Source":null,"WatsonBuckets":null},"exceptionObjectString":"System.Exception: test","userName":"a\a","domain":"PvaTest.exe","identity":"","pid":45700,"machineName":"45K9VT2","workingSet":23457792,"osVersion":"Microsoft Windows NT 6.2.9200.0","properties":{"log4net:UserName":"a\a","log4net:Identity":"","CustomerId":3,"log4net:HostName":"45K9VT2"}} //end of json log
System.Exception: test // <---- where did this come from?
I cant figure out where this is coming from. I've set a breakpoint in my layout class and when it writes to the TextWriter that value is not there, looks like maybe its being added by this Library?
I see the same thing using the standard pattern layout:
It seems to only do this when an exception is passed in.
If I set these to null it fixes the problem:
Have you ever seen this?