Hi All: On every project I've worked on, at some point, I or someone needs to log of byte buffer (usually a byte[] but I am working a new project that uses an NIO ByteBuffer too).
We do not have a Log4j ByteBufferMessage, how about adding one? That seems quite withing the scope of Log4j I would expect the following to be parameters: - group size in bytes (default 8) - group count per line (default 4) - uppercase vs. lowercase output (default?) - base (default 16, should this even be configurable?) - group separator (default space " ") - char encoding (default UTF-8 or ASCII), if present extends the a line with text version of the bytes - groups-text separator (default " | ") - address-groups separator (default " | ") - unprintable char (default .) Example output line (bogus values): 00000 | 01234567 a1234567 b1234567 c1234567 | .HELLO... Thoughts? Gary -- E-Mail: [email protected] | [email protected] Java Persistence with Hibernate, Second Edition <http://www.manning.com/bauer3/> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/> Spring Batch in Action <http://www.manning.com/templier/> Blog: http://garygregory.wordpress.com Home: http://garygregory.com/ Tweet! http://twitter.com/GaryGregory
