[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
Mon Mar 22 11:49:57 CET 2010


http://bugzilla.slf4j.org/show_bug.cgi?id=173





--- Comment #5 from Thorsten <thorsten.Moeller at unibas.ch>  2010-03-22 11:49:56 ---
Do you agree that the fix merely truncates tag names longer than 23 characters,
like so:

private static final int MAX_TAG_LENGTH = 23;

AndroidLogger(final String name)
{
                // fix for bug #173: trim tag length in case it exceeds maximum
length
                this.name = (name != null && name.length() > MAX_TAG_LENGTH)?
name.substring(0, MAX_TAG_LENGTH) : name;
}

Any comments, proposals for a more advanced way on how to shorten tag names?


-- 
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