I for myself do such things when preparing the log message, i.e.:
if (myLog.isDebugEnabled())
{
myLog.debug( "received binary data:\n" + Conversions.byteArrayToHexDump(
myByteArray ) );
}
Annother apporach is to write your own renderer. In this case you would have
also to define an own clas
I have a requirement to log raw binary data. This will be mostly ASCII
characters but will contain non-displayable control characters such as
\0, etc. My first thought was to write an appender by extending the
FileAppender class but I cannot see how to do this as I need access to
an OutputStrea
Since you do not specify which displaying application shall show colors I can
give you advice how to achieve it within the eclipse console display:
Configure two separate appenders. One for the levels WARN and higher and one
for the levels INFO and lower. Assign them to the std.err and std.out.