[slf4j-dev] [Bug 287] Beautification of error message in Logger.createChildByName()
bugzilla-daemon at qos.ch
bugzilla-daemon at qos.ch
Thu Dec 20 17:12:12 CET 2012
http://bugzilla.slf4j.org/show_bug.cgi?id=287
--- Comment #1 from David Tonhofer <d.tonhofer at m-plify.com> 2012-12-20 17:12:12 CET ---
Sorry, still wrong text.
It turns out that the separator of a Logger name is DOT, but for the last
string not containing any DOT it is DOLLAR.
This leads to a problem though. I get an Exception when constructing a Logger
in 1.7.2 but not in 1.6.1, will open bug...
Anyway, the exception should thus read:
throw new IllegalArgumentException("For logger [" + this.name
+ "], child name [" + childName
+ "] passed as parameter shall not include the separators '"
+ CoreConstants.DOT + ' or ' + CoreConstants.DOLLAR +
+ "' after position "
+ (this.name.length() + 1));
Attention: This is for SLF4J 1.7.2, but bugzilla doesn't list that version yet.
--
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