[slf4j-dev] Fw: [Bug 173] New: slf4j android: Android throws an IllegalArgumentException when Log Tag length exceeds 23 characters
Ceki Gülcü
ceki at qos.ch
Fri Mar 12 16:30:54 CET 2010
Hi Thorsten,
Done.
On 12/03/2010 3:18 PM, Thorsten Möller wrote:
> Hi Ceki,
>
> would it be possible to create a new component "slf4j-android" in
> Bugzilla so that future bugs can be scoped appropriately.
>
> Thanks,
> Thorsten
>
>
>
>
>
> On Friday, March 12, 2010 1:55 PM [GMT+1=CET],
> bugzilla-daemon at pixie.qos.ch<bugzilla-daemon at pixie.qos.ch> wrote (with
> possible deletions):
>
>> http://bugzilla.slf4j.org/show_bug.cgi?id=173
>>
>> Summary: slf4j android: Android throws an
>> IllegalArgumentException when Log Tag length
>> exceeds 23 characters
>> Product: SLF4J
>> Version: 1.5.x
>> Platform: Other
>> OS/Version: other
>> Status: NEW
>> Severity: blocker
>> Priority: P1
>> Component: Implementations
>> AssignedTo: slf4j-dev at qos.ch
>> ReportedBy: lorecarra at gmail.com
>>
>>
>> I don't know if the 23-characters long tag limitation has been
>> removed in later releases, but, unfortunately, Android 1.1 has it. I
>> think the tag length should be checked and the tag eventually trimmed
>> in order to avoid incurring in this exception without having to
>> change the application logging code.
>> The check is performed into the native method
>> android.util.Log.isLoggable()
>> To reproduce the problem in Android 1.1:
>>
>> String ALLOWED_TAG = "abcdefghijklmnopqrstuvw";
>> String TOO_LONG_TAG = "abcdefghijklmnopqrstuvwxyz";
>> Log.i(ALLOWED_TAG, "blabla");
>> Log.i(TOO_LONG_TAG, "blabla");
>
>
> _______________________________________________
> slf4j-dev mailing list
> slf4j-dev at qos.ch
> http://qos.ch/mailman/listinfo/slf4j-dev
More information about the slf4j-dev
mailing list