[slf4j-dev] [Bug 287] New: Beautification of error message in Logger.createChildByName()

bugzilla-daemon at qos.ch bugzilla-daemon at qos.ch
Thu Dec 20 16:13:02 CET 2012


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

           Summary: Beautification of error message in
                    Logger.createChildByName()
           Product: SLF4J
           Version: 1.6.x
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P1
         Component: Core API
        AssignedTo: slf4j-dev at qos.ch
        ReportedBy: d.tonhofer at m-plify.com


Currently the following text is generated:

      throw new IllegalArgumentException("For logger [" + this.name
          + "] child name [" + childName
          + " passed as parameter, may not include '.' after index"
          + (this.name.length() + 1));

This is missing a ] and a " ", (I also would replace "index" by "position" and
use CoreConstants.DOT) thus:

      throw new IllegalArgumentException("For logger [" + this.name
          + "], child name [" + childName
          + "] passed as parameter may not include the dot separator '"
          + CoreConstants.DOT
          + "' after position "
          + (this.name.length() + 1));

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