@Override public List<String> getHandlerNames() { synchronized (LOCK) { return delegate.getHandlerNames(); } }
@Override public List<String> getHandlerNames() { synchronized (LOCK) { return delegate.getHandlerNames(); } }
@Override public List<String> getHandlerNames() { synchronized (LOCK) { return delegate.getHandlerNames(); } }
@Override protected boolean applyUpdate(final OperationContext context, final String attributeName, final String addressName, final ModelNode value, final LogContextConfiguration logContextConfiguration) throws OperationFailedException { boolean restartRequired = false; if (logContextConfiguration.getHandlerNames().contains(addressName)) { final HandlerConfiguration configuration = logContextConfiguration.getHandlerConfiguration(addressName); if (LEVEL.getName().equals(attributeName)) {
if (config.getHandlerNames().contains(handlerName)) { implicitHandlers.add(handlerName); handlerNames.add(handlerName);
final List<String> handlerNames = logContextConfiguration.getHandlerNames(); for (String handlerName : handlerNames) { final HandlerConfiguration c = logContextConfiguration.getHandlerConfiguration(handlerName);
final List<String> handlerNames = logContextConfiguration.getHandlerNames(); for (String handlerName : handlerNames) { final HandlerConfiguration c = logContextConfiguration.getHandlerConfiguration(handlerName);
@Override protected boolean applyUpdate(final OperationContext context, final String attributeName, final String addressName, final ModelNode value, final LogContextConfiguration logContextConfiguration) throws OperationFailedException { boolean restartRequired = false; if (logContextConfiguration.getHandlerNames().contains(addressName)) { final HandlerConfiguration configuration = logContextConfiguration.getHandlerConfiguration(addressName); if (LEVEL.getName().equals(attributeName)) {
@Override protected boolean applyUpdate(final OperationContext context, final String attributeName, final String addressName, final ModelNode value, final LogContextConfiguration logContextConfiguration) throws OperationFailedException { boolean restartRequired = false; if (logContextConfiguration.getHandlerNames().contains(addressName)) { final HandlerConfiguration configuration = logContextConfiguration.getHandlerConfiguration(addressName); if (LEVEL.getName().equals(attributeName)) {
final Collection<String> handlersToRemove = config.getHandlerNames();
final List<String> configuredHandlerNames = logContextConfiguration.getHandlerNames(); configuredHandlerNames.removeAll(resource.getChildrenNames(AsyncHandlerResourceDefinition.ASYNC_HANDLER)); configuredHandlerNames.removeAll(resource.getChildrenNames(ConsoleHandlerResourceDefinition.CONSOLE_HANDLER));
final List<String> configuredHandlerNames = logContextConfiguration.getHandlerNames(); configuredHandlerNames.removeAll(subsystemHandlers); for (String name : configuredHandlerNames) {
if (config.getHandlerNames().contains(handlerName)) { implicitHandlers.add(handlerName); handlerNames.add(handlerName);
private static void clearLogContext(final LogContextConfiguration logContextConfiguration) { try { for (String s5 : logContextConfiguration.getHandlerNames()) { logContextConfiguration.removeHandlerConfiguration(s5);
/** * 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.getHandlerNames()) { logContextConfiguration.removeHandlerConfiguration(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 name : logContextConfiguration.getHandlerNames()) { logContextConfiguration.removeHandlerConfiguration(name);
private static void clearLogContext(final LogContextConfiguration logContextConfiguration) { try { for (String s5 : logContextConfiguration.getHandlerNames()) { logContextConfiguration.removeHandlerConfiguration(s5);
if (config.getHandlerNames().contains(handlerName)) { configuration = config.getHandlerConfiguration(handlerName); } else {