[infinispan-dev] Reminder on trickiness for guarding against log trace
Sanne Grinovero
sanne at infinispan.org
Wed Feb 22 14:16:02 EST 2012
It's easy to be fooled by the nice looking tracef API; can you see
what's wrong with the next method?
log.tracef("%s: Committing view %s", cacheName, viewId);
[solution below]
The signature for such a tracef method is
tracef(String format, Object param1, Object param2);
so integers, booleans, etcetera.. will be boxed into objects.
More information about the infinispan-dev
mailing list