[infinispan-issues] [JBoss JIRA] (ISPN-1530) Represent byte arrays in hex format when logging
Galder Zamarreño (Issue Comment Edited) (JIRA)
jira-events at lists.jboss.org
Wed Nov 16 13:28:40 EST 2011
[ https://issues.jboss.org/browse/ISPN-1530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12643471#comment-12643471 ]
Galder Zamarreño edited comment on ISPN-1530 at 11/16/11 1:27 PM:
------------------------------------------------------------------
There're faster implementations of course, such as:
{code}
BigInteger bi = new BigInteger(1, sample2);
String hexString2 = bi.toString(16);
if (hexString2.length() % 2 != 0) {
hexString2 = "0" + hexString;
}{code}
was (Author: galder.zamarreno):
There're fast implementations of course, such as:
{code}
BigInteger bi = new BigInteger(1, sample2);
String hexString2 = bi.toString(16);
if (hexString2.length() % 2 != 0) {
hexString2 = "0" + hexString;
}{code}
> Represent byte arrays in hex format when logging
> ------------------------------------------------
>
> Key: ISPN-1530
> URL: https://issues.jboss.org/browse/ISPN-1530
> Project: Infinispan
> Issue Type: Enhancement
> Reporter: Galder Zamarreño
> Assignee: Galder Zamarreño
> Fix For: 5.1.0.BETA5
>
>
> Byte arrays are a pain to track in log files. We need a more compact and easier way of tracking them down, so I suggest from now on we show their HEX representation: https://gist.github.com/1370843
> We can still limit the length, as we do now with byte[], and if you need the full length, you can carry on using the system property we defined.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the infinispan-issues
mailing list