<html>
<head>
<base href="http://bugzilla.slf4j.org/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:idolon.dev@gmail.com" title="idolon <idolon.dev@gmail.com>"> <span class="fn">idolon</span></a>
</span> changed
<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>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>idolon.dev@gmail.com
</td>
</tr></table>
<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#c13">Comment # 13</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:idolon.dev@gmail.com" title="idolon <idolon.dev@gmail.com>"> <span class="fn">idolon</span></a>
</span></b>
<pre>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.
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>
test code:
String TAG_LEN_23 = "abcdefghijklmnopqrstuvw";
String TAG_LEN_26 = "abcdefghijklmnopqrstuvwxyz";
String TAG_LEN_80 =
"01234567890123456789012345678901234567890123456789012345678901234567890123456789";
String TAG_LEN_100 =
"0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789";
Log.i(TAG_LEN_23, "blabla");
// no exception under both 2.2 and 4.1
Log.i(TAG_LEN_26, "blabla");
// no exception either
Log.i(TAG_LEN_80, "blabla");
Log.v(TAG_LEN_80, "blabla");
Log.d(TAG_LEN_80, "blabla");
Log.w(TAG_LEN_80, "blabla");
Log.e(TAG_LEN_80, "blabla");
// still no exception but Eclipse LogCat view will display it
incorrectly
Log.i(TAG_LEN_100, "blabla");</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>