Abgeschickt von Danko am 15 Juni, 2005 um 21:25:53:
Antwort auf: Logging integers with MDC von Nal am 14 Juni, 2005 um 01:00:52:
Hi,
you may only put objects to MDCs. Consequently, you should use Integer objects to log ints.
You may use
Integer.valueof(2)
or
new Integer(2)
for example.
Danko
: I have a little problem. I can't figure out how to log integers with MDC as everything goes through the toString method. Any sugestions?
: Thanks.