@Override public List<String> getErrorManagerNames() { synchronized (LOCK) { return delegate.getErrorManagerNames(); } }
@Override public List<String> getErrorManagerNames() { synchronized (LOCK) { return delegate.getErrorManagerNames(); } }
@Override public List<String> getErrorManagerNames() { synchronized (LOCK) { return delegate.getErrorManagerNames(); } }
writeFormatterConfiguration(out, config.getFormatterConfiguration(formatterName), writeExpressions); final List<String> allErrorManagerNames = config.getErrorManagerNames(); final ArrayList<String> explicitErrorManagerNames = new ArrayList<String>(allErrorManagerNames); explicitErrorManagerNames.removeAll(implicitErrorManagers);
private boolean configureErrorManager(final Properties properties, final String errorManagerName) { final String className = getStringProperty(properties, getKey(ERROR_MANAGER, errorManagerName)); if (className == null) { printError("Error manager %s is not defined%n", errorManagerName); return false; } final ErrorManagerConfiguration configuration; if (config.getErrorManagerNames().contains(errorManagerName)) { configuration = config.getErrorManagerConfiguration(errorManagerName); } else { configuration = config.addErrorManagerConfiguration(getStringProperty(properties, getKey(ERROR_MANAGER, errorManagerName, MODULE)), className, errorManagerName, getStringCsvArray(properties, getKey(ERROR_MANAGER, errorManagerName, CONSTRUCTOR_PROPERTIES))); } final String[] postConfigurationMethods = getStringCsvArray(properties, getKey(ERROR_MANAGER, errorManagerName, POST_CONFIGURATION)); configuration.setPostConfigurationMethods(postConfigurationMethods); configureProperties(properties, configuration, getKey(ERROR_MANAGER, errorManagerName)); return true; }
if (errorManagerName != null) { if (config.getErrorManagerNames().contains(handler.getErrorManagerName())) { writeProperty(out, prefix, "errorManager", errorManagerName); implicitErrorManagers.add(handler.getErrorManagerName());
/** * 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()); } }
/** * 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 s3 : logContextConfiguration.getErrorManagerNames()) { logContextConfiguration.removeErrorManagerConfiguration(s3);
for (String name : logContextConfiguration.getErrorManagerNames()) { logContextConfiguration.removeErrorManagerConfiguration(name);
for (String name : logContextConfiguration.getErrorManagerNames()) { logContextConfiguration.removeErrorManagerConfiguration(name);
for (String s3 : logContextConfiguration.getErrorManagerNames()) { logContextConfiguration.removeErrorManagerConfiguration(s3);