<html>
<head>
<base href="http://bugzilla.slf4j.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - slf4j android: Android throws an IllegalArgumentException when Log Tag length exceeds 23 characters"
href="http://bugzilla.slf4j.org/show_bug.cgi?id=173#c15">Comment # 15</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - slf4j android: Android throws an IllegalArgumentException when Log Tag length exceeds 23 characters"
href="http://bugzilla.slf4j.org/show_bug.cgi?id=173">bug 173</a>
from <span class="vcard"><a class="email" href="mailto:thorsten.Moeller@unibas.ch" title="Thorsten <thorsten.Moeller@unibas.ch>"> <span class="fn">Thorsten</span></a>
</span></b>
<pre>(In reply to <a href="show_bug.cgi?id=173#c13">comment #13</a>)
<span class="quote">> Just FYI.
> I've just checked all android.util.Log methods v(), d(), i(), w() and e() on
> Android 2.2 and 4.1 - neither of it throws an exception even with very long tag.
> (however Eclipse LogCat view doesn't correctly display messages if tag.length +
> time.length > 128 characters).
>
> The only place where tag is checked for 23 chars length - isLoggable() method.</span >
Correct. AFAIR, this behavior exists already in Android 1.5.
<span class="quote">> I've filled issue on Android bug tracker to correct this most likely obsolete
> behavior: <a href="https://code.google.com/p/android/issues/detail?id=59186">https://code.google.com/p/android/issues/detail?id=59186</a></span >
Great! This should be the direction in which to put forward this issue.
(In reply to <a href="show_bug.cgi?id=173#c14">comment #14</a>)
<span class="quote">> Taking into account my comment above, maybe we should relax the tag length
> limitation from 23 to at least 80?</span >
Don't agree because it makes things more difficult. How would "is...Enabled"
methods be implemented then: delegate to the backing Android "isLoggable"
logger method? No longer possible directly because they would throw IAE if tag
length > 23. Extend the AndroidLogger such that it implements its own logic on
this? Possible, but, first, it makes it more heavyweight, which, recalling the
original design goal of having the most simple adapter between SLF4J and
AndroidLogging, breaks this goal.
I would really love to see the limitation issue being solved at Android side
rather than working around it.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>