ch.qos.logback.core.joran.action
Class Action
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.joran.action.Action
- All Implemented Interfaces:
- ContextAware
- Direct Known Subclasses:
- AbstractEventEvaluatorAction, AddAction, AppenderAction, AppenderRefAction, BindDataSourceToJNDIAction, ComputationAction1, ComputationAction2, ConfigurationAction, ConfigurationAction, ConsolePluginAction, ContextNameAction, ContextPropertyAction, ConversionRuleAction, HelloWorldAction, ImplicitAction, IncludeAction, InsertFromJNDIAction, JMXConfiguratorAction, LevelAction, LiteralAction, LoggerAction, MultiplyAction, NewRuleAction, NOPAction, NOPAction, ParamAction, PropertyAction, RootLoggerAction, SiftAction, SiftAction, StatusListenerAction
public abstract class Action
- extends ContextAwareBase
Most of the work for configuring logback is done by Actions.
Action methods are invoked as the XML file is parsed.
This class is largely inspired from the relevant class in the
commons-digester project of the Apache Software Foundation.
- Author:
- Craig McClanahan, Christopher Lenz, Ceki Gülcü
NAME_ATTRIBUTE
public static final String NAME_ATTRIBUTE
- See Also:
- Constant Field Values
VALUE_ATTRIBUTE
public static final String VALUE_ATTRIBUTE
- See Also:
- Constant Field Values
FILE_ATTRIBUTE
public static final String FILE_ATTRIBUTE
- See Also:
- Constant Field Values
CLASS_ATTRIBUTE
public static final String CLASS_ATTRIBUTE
- See Also:
- Constant Field Values
PATTERN_ATTRIBUTE
public static final String PATTERN_ATTRIBUTE
- See Also:
- Constant Field Values
ACTION_CLASS_ATTRIBUTE
public static final String ACTION_CLASS_ATTRIBUTE
- See Also:
- Constant Field Values
Action
public Action()
begin
public abstract void begin(InterpretationContext ec,
String name,
Attributes attributes)
throws ActionException
- Called when the parser encounters an element matching a
Pattern
.
- Throws:
ActionException
body
public void body(InterpretationContext ec,
String body)
throws ActionException
- Throws:
ActionException
end
public abstract void end(InterpretationContext ec,
String name)
throws ActionException
- Throws:
ActionException
toString
public String toString()
- Overrides:
toString
in class Object
getColumnNumber
protected int getColumnNumber(InterpretationContext ec)
getLineNumber
protected int getLineNumber(InterpretationContext ec)
getLineColStr
protected String getLineColStr(InterpretationContext ec)
Copyright © 2005-2009 QOS.ch. All Rights Reserved.