Examples of LoggerConfiguration


Examples of org.exolab.jms.config.LoggerConfiguration

     * @throws NamingException  if administered objects cannot be bound in JNDI
     * @throws ServiceException if the server cannot be initialised
     */
    public void init() throws NamingException, ServiceException {
        // initialise the logger
        LoggerConfiguration log = _config.getLoggerConfiguration();

        // @todo - need to do this in main(), to allow pluggable log factories
        // when embedding OpenJMS
        DOMConfigurator.configure(log.getFile());

        // initialise the services, and start them
        try {
            registerServices();
            _services.start();
View Full Code Here

Examples of org.jboss.logmanager.config.LoggerConfiguration

        }

        @Override
        public final void performRuntime(final OperationContext context, final ModelNode operation, final LogContextConfiguration logContextConfiguration, final String name, final ModelNode model) throws OperationFailedException {
            final String loggerName = getLogManagerLoggerName(name);
            LoggerConfiguration configuration = logContextConfiguration.getLoggerConfiguration(loggerName);
            if (configuration == null) {
                throw createOperationFailure(LoggingMessages.MESSAGES.loggerConfigurationNotFound(loggerName));
            }
            performRuntime(context, operation, configuration, loggerName, model);
        }
View Full Code Here

Examples of org.jboss.logmanager.config.LoggerConfiguration

        }

        @Override
        public void performRuntime(final OperationContext context, final ModelNode operation, final LogContextConfiguration logContextConfiguration, final String name, final ModelNode model) throws OperationFailedException {
            final String loggerName = getLogManagerLoggerName(name);
            LoggerConfiguration configuration = logContextConfiguration.getLoggerConfiguration(loggerName);
            if (configuration == null) {
                LoggingLogger.ROOT_LOGGER.tracef("Adding logger '%s' at '%s'", name, LoggingOperations.getAddress(operation));
                configuration = logContextConfiguration.addLoggerConfiguration(loggerName);
            }
View Full Code Here

Examples of org.jboss.logmanager.config.LoggerConfiguration

        @Override
        protected boolean applyUpdate(final OperationContext context, final String attributeName, final String addressName, final ModelNode value, final LogContextConfiguration logContextConfiguration) throws OperationFailedException {
            final String loggerName = getLogManagerLoggerName(addressName);
            if (logContextConfiguration.getLoggerNames().contains(loggerName)) {
                final LoggerConfiguration configuration = logContextConfiguration.getLoggerConfiguration(loggerName);
                if (LEVEL.getName().equals(attributeName)) {
                    handleProperty(LEVEL, context, value, configuration, false);
                } else if (FILTER.getName().equals(attributeName)) {
                    // Filter should be replaced by the filter-spec in the super class
                    handleProperty(FILTER_SPEC, context, value, configuration, false);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.