[infinispan-dev] Fwd: JBoss Logging and printing byte[]… WDYT?

Galder Zamarreño galder at redhat.com
Wed Mar 20 04:46:44 EDT 2013


FYI, hoping for JBoss Logging to have better support for array display, particularly byte[].

Begin forwarded message:

> From: David Lloyd <dlloyd at redhat.com>
> Subject: Re: JBoss Logging and printing byte[]… WDYT?
> Date: March 19, 2013 11:45:35 PM GMT+01:00
> To: Galder Zamarreño <galder at redhat.com>
> 
> It's a good idea.  I would need to contemplate implementation options though.
> 
> --
> - DML
> 
> 
> On Mar 19, 2013, at 4:56 PM, Galder Zamarreño <galder at redhat.com> wrote:
> 
>> Hey,
>> 
>> I've got an idea!
>> 
>> What about JBoss Logging has an option to print arrays, given a particular function?
>> 
>> I mean, Infinispan is moving towards being able to have byte[] as keys (by using a custom CHMv8 which takes a Comparing function that allows keys/values to be compared on equality/hashCode).
>> 
>> The problem is that now, all the logging we do of keys needs to be wrapped so that keys, which are byte[] are printed properly. It'd be great if JBoss Logging had a way to be plugged with how byte[] should be displayed, since it might be specific to each use case.
>> 
>> WDYT?
>> 
>> Cheers,
>> --
>> Galder Zamarreño
>> galder at redhat.com
>> twitter.com/galderz
>> 
>> Project Lead, Escalante
>> http://escalante.io
>> 
>> Engineer, Infinispan
>> http://infinispan.org
>> 


--
Galder Zamarreño
galder at redhat.com
twitter.com/galderz

Project Lead, Escalante
http://escalante.io

Engineer, Infinispan
http://infinispan.org




More information about the infinispan-dev mailing list