[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:02:09 CET 2010
http://bugzilla.slf4j.org/show_bug.cgi?id=173
--- Comment #3 from Thorsten <thorsten.Moeller at unibas.ch> 2010-03-12 17:02:09 ---
(In reply to comment #2)
> I will surely check as soon as I can. Anyway, before submitting this bug I
> checked the code where the error is thrown in the android source repository
> trunk (the Android 2.1 platform code), and it's still there. I quote some code:
>
> In android/system/core/include/cutils/property.h:
>
> #define PROPERTY_KEY_MAX 32
>
> In android/frameworks/base/core/jni/android_util_Log.cpp
>
> ...
> #define LOG_NAMESPACE "log.tag."
> ...
> if ((strlen(chars)+sizeof(LOG_NAMESPACE)) > PROPERTY_KEY_MAX) {
> -> THROW EXCEPTION: Log tag X exceeds limit of (PROPERTY_KEY_MAX -
> sizeof(LOG_NAMESPACE) characters
>
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?
> Hope this helps, when I'll reach an emulator I'll check with the other versions
> of the platform.
Exactly. Should be easily verifiable using the emulator.
-- Thorsten
--
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