Comment #1 on issue 330 by [email protected]: add the possiblity to
choose TextFormat default printer in java
http://code.google.com/p/protobuf/issues/detail?id=330
How about:
static Object lazyFormat(final Message m) {
return new Object() {
public String toString() { return TextFormat.shortDebugString(m); }
};
}
logger.debug("blabla {}", lazyFormat(message));
--
You received this message because you are subscribed to the Google Groups "Protocol
Buffers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/protobuf?hl=en.