Issue Type: Bug Bug
Affects Versions: 1.0.9
Assignee: Logback dev list
Components: logback-classic
Created: 20/Dec/12 7:05 PM
Description: ch.qos.logback.classic.Logger.createChildByName() may throw an exception if it finds a DOT or a DOLLAR in the childName passed to it.

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

It turns out that the separator of a Logger name is DOT, but for the last string not containing any DOT it is DOLLAR. The exception should thus read, adding some missing formatting:

      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));
Environment: Linux / Eclipse
Project: logback
Priority: Minor Minor
Reporter: David Tonhofer
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira