operation.get(ModelDescriptionConstants.VALUE).set(Logging.fixFormatPattern(currentPattern)); } else if (attributeName.equals(CommonAttributes.FILTER_SPEC.getName())) { operation.get(CommonAttributes.FORMATTER.getName()).set(Logging.fixFormatPattern(currentPattern));
void doTransform(final TransformationContext context, final PathAddress address, final Resource resource) { final ModelNode model = resource.getModel(); for (AttributeDefinition attribute : removableAttributes) { if (model.has(attribute.getName())) { LoggingLogger.ROOT_LOGGER.debugf("Removing attribute '%s' during transform", attribute.getName()); model.remove(attribute.getName()); } } if (model.hasDefined(CommonAttributes.LEVEL.getName()) && model.get(CommonAttributes.LEVEL.getName()).asString().equals("ALL")) { model.remove(CommonAttributes.LEVEL.getName()); } if (model.hasDefined(CommonAttributes.FORMATTER.getName())) { final String currentPattern = model.get(CommonAttributes.FORMATTER.getName()).asString(); model.get(CommonAttributes.FORMATTER.getName()).set(Logging.fixFormatPattern(currentPattern)); } } }