[slf4j-dev] [Bug 173] slf4j android: Android throws an IllegalArgumentException when Log Tag length exceeds 23 characters

bugzilla-daemon at pixie.qos.ch bugzilla-daemon at pixie.qos.ch
Fri Mar 12 17:07:41 CET 2010


http://bugzilla.slf4j.org/show_bug.cgi?id=173





--- Comment #4 from Lorenzo Carrara <lorecarra at gmail.com>  2010-03-12 17:07:41 ---
> My conclusion of this is that the problem most likely does exist since 1.1 (up
> to 2.1).
> 
> And, I guess the initial value "23" you gave is a typo and it is actually 32,
> correct?
> 

No it's not a typo: Android's internal logging framework prefixes log tags with
the string defined in LOG_NAMESPACE (see previous comment), and the 32
characters limit refers to the prefixed string. So, being this namespace 8
chars long, the tag limit becomes 24 characters. I guess one more character
goes as the C string terminator, so in the end we have 23 characters left in
Java.


-- 
Configure bugmail: http://bugzilla.slf4j.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the slf4j-dev mailing list