本文转自:
问:
Target:
When I call Logger.Error("some message", e)
, where e
is some exception object, it only logs the message, not the exception information. I need it to output exception message and stack trace. Any ideas what I am doing wrong?
答:
I've found ${exception:format=tostring}
to be the best format for logging full details.