Details
-
Improvement
-
Resolution: Unresolved
-
Major
-
None
-
None
-
None
Description
Partial printing for large payloads should be supported.
For example, let p be an object such that p.toString().length() is larger than 1K and let PARTIAL_PRINT be a marker. We should be able to write
logger.debug(PARTIAL_PRINT, "payload is {}", p);
so that only a small part of p is printed. It would be the responsibility of the relevant converter to handle partial printing in this case.
If partial printing of data over X bytes, for some user-specified X, is often desirable, we could default to partial printing unless a special marker, e.g. PRINT_ALL, tells us otherwise.