public void begin(ExecutionContext ec, String name, Attributes attributes) {
// Let us forget about previous errors (in this object)
inError = false;
LoggerContext loggerContext = (LoggerContext) this.context;
// Create a new org.apache.log4j.Category object from the <category> element.
String loggerName = attributes.getValue(NAME_ATTRIBUTE);
if (OptionHelper.isEmpty(loggerName)) {
inError = true;
String line =
", around line " + getLineNumber(ec) + " column "
+ getColumnNumber(ec);
String errorMsg = "No 'name' attribute in element " + name + line;
addError(errorMsg);
return;
}
//getLogger().debug("Logger name is [" + loggerName + "].");
Logger l = loggerContext.getLogger(loggerName);
boolean additive =
OptionHelper.toBoolean(
attributes.getValue(ActionConst.ADDITIVITY_ATTRIBUTE), true);