@Override public List<String> getFilterNames() { synchronized (LOCK) { return delegate.getFilterNames(); } }
@Override public List<String> getFilterNames() { synchronized (LOCK) { return delegate.getFilterNames(); } }
@Override public List<String> getFilterNames() { synchronized (LOCK) { return delegate.getFilterNames(); } }
implicitFormatters, implicitErrorManagers, writeExpressions); final List<String> allFilterNames = config.getFilterNames(); final List<String> explicitFilterNames = new ArrayList<String>(allFilterNames); explicitFilterNames.removeAll(implicitFilters);
private void configureFilter(final Properties properties, final String filterName) { final String className = getStringProperty(properties, getKey(FILTER, filterName)); if (className == null) { // Assume we're using a filter expression return; } final FilterConfiguration configuration; if (config.getFilterNames().contains(filterName)) { configuration = config.getFilterConfiguration(filterName); } else { configuration = config.addFilterConfiguration(getStringProperty(properties, getKey(FILTER, filterName, MODULE)), className, filterName, getStringCsvArray(properties, getKey(FILTER, filterName, CONSTRUCTOR_PROPERTIES))); } final String[] postConfigurationMethods = getStringCsvArray(properties, getKey(FILTER, filterName, POST_CONFIGURATION)); configuration.setPostConfigurationMethods(postConfigurationMethods); configureProperties(properties, configuration, getKey(FILTER, filterName)); }
/** * Registers the deployment resources needed. * * @param deploymentResourceSupport the deployment resource support * @param service the service, which may be {@code null}, used to find the resource names that need to be registered */ public static void registerDeploymentResource(final DeploymentResourceSupport deploymentResourceSupport, final LoggingConfigurationService service) { final PathElement base = PathElement.pathElement("configuration", service.getConfiguration()); deploymentResourceSupport.getDeploymentSubModel(LoggingExtension.SUBSYSTEM_NAME, base); final LogContextConfiguration configuration = service.getValue(); // Register the child resources if the configuration is not null in cases where a log4j configuration was used if (configuration != null) { registerDeploymentResource(deploymentResourceSupport, base, HANDLER, configuration.getHandlerNames()); registerDeploymentResource(deploymentResourceSupport, base, LOGGER, configuration.getLoggerNames()); registerDeploymentResource(deploymentResourceSupport, base, FORMATTER, configuration.getFormatterNames()); registerDeploymentResource(deploymentResourceSupport, base, FILTER, configuration.getFilterNames()); registerDeploymentResource(deploymentResourceSupport, base, POJO, configuration.getPojoNames()); registerDeploymentResource(deploymentResourceSupport, base, ERROR_MANAGER, configuration.getErrorManagerNames()); } }
for (String name : logContextConfiguration.getFilterNames()) { logContextConfiguration.removeFilterConfiguration(name);
/** * Registers the deployment resources needed. * * @param deploymentResourceSupport the deployment resource support * @param service the service, which may be {@code null}, used to find the resource names that need to be registered */ public static void registerDeploymentResource(final DeploymentResourceSupport deploymentResourceSupport, final LoggingConfigurationService service) { final PathElement base = PathElement.pathElement("configuration", service.getConfiguration()); deploymentResourceSupport.getDeploymentSubModel(LoggingExtension.SUBSYSTEM_NAME, base); final LogContextConfiguration configuration = service.getValue(); // Register the child resources if the configuration is not null in cases where a log4j configuration was used if (configuration != null) { registerDeploymentResource(deploymentResourceSupport, base, HANDLER, configuration.getHandlerNames()); registerDeploymentResource(deploymentResourceSupport, base, LOGGER, configuration.getLoggerNames()); registerDeploymentResource(deploymentResourceSupport, base, FORMATTER, configuration.getFormatterNames()); registerDeploymentResource(deploymentResourceSupport, base, FILTER, configuration.getFilterNames()); registerDeploymentResource(deploymentResourceSupport, base, POJO, configuration.getPojoNames()); registerDeploymentResource(deploymentResourceSupport, base, ERROR_MANAGER, configuration.getErrorManagerNames()); } }
for (String s : logContextConfiguration.getFilterNames()) { logContextConfiguration.removeFilterConfiguration(s);
for (String name : logContextConfiguration.getFilterNames()) { logContextConfiguration.removeFilterConfiguration(name);
for (String s : logContextConfiguration.getFilterNames()) { logContextConfiguration.removeFilterConfiguration(s);