[slf4j-dev] Fw: [Bug 173] New: slf4j android: Android throws an IllegalArgumentException when Log Tag length exceeds 23 characters
Thorsten Möller
Thorsten.Moeller at unibas.ch
Fri Mar 12 15:18:16 CET 2010
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");
More information about the slf4j-dev
mailing list