Issue Type: Bug Bug
Affects Versions: 1.1.2, 1.1.1, 1.1.0, 1.0.13
Assignee: Logback dev list
Components: logback-site
Created: 03/Feb/15 10:12 AM
Description:

The chapter about Joran still cites using Pattern class, while it was replaced by ElementSelector:

package ch.qos.logback.core.joran.action;

import org.xml.sax.Attributes;
import ch.qos.logback.core.joran.spi.ExecutionContext;

public abstract class Action {
  /**
   * Called when the parser encounters an element matching a
   * {@link ch.qos.logback.core.joran.spi.Pattern Pattern}.
   */
  public abstract void begin(InterpretationContext ic, String name,
      Attributes attributes) throws ActionException;

  /**
   * Called to pass the body (as text) contained within an element.
   */
  public void body(InterpretationContext ic, String body)
      throws ActionException {
    // NOP
  }

  /*
   * Called when the parser encounters an endElement event matching a
   * {@link ch.qos.logback.core.joran.spi.Pattern Pattern}.
   */
  public abstract void end(InterpretationContext ic, String name)
      throws ActionException;
}

The class should be ch.qos.logback.core.joran.spi.ElementSelector.

Also, this change, which happened in v1.0.13 is not documented anywhere, which makes migrating code depending on the older versions hard.

Project: logback
Priority: Minor Minor
Reporter: Ivan Toshkov
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