FYI, hoping for JBoss Logging to have better support for array display, particularly
byte[].
Begin forwarded message:
From: David Lloyd <dlloyd(a)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(a)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(a)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(a)redhat.com
>
twitter.com/galderz
>
> Project Lead, Escalante
>
http://escalante.io
>
> Engineer, Infinispan
>
http://infinispan.org
>