Environment
I have implemented log4j
in my application successfully. I have used following pattern loayout:
{"a":"%X{Id}","b":"%d","message":"%m","priority":"%p","Exception":"%ex"}
It is logging as json format with my custom attributes.
But while logging exception with %ex it is printing whole trace, i want it but it is breaking json format.
Question
So can you please suggest me to put whole stack trace in json without breaking.