I didn't know that so easy you can add to logs for example http
session id. You need only put into MDC object value and later set log
pattern as %X{sessionId}.
When I did that I had to find
good place to put into MDC my sessionId parameter. I created web filter
to archive that. Filter is simple and should be executed in correct
order in chain.
LINK
I
have to admit I had problem with logging exception stack trace. I
implemented ThrowableRenderer and have set throwableRenderer tag.
SRC
No comments:
Post a Comment