Package org.jboss.as.console.client.shared.subsys.logging.model

Examples of org.jboss.as.console.client.shared.subsys.logging.model.LoggerConfig


        if (details.getEditedLoggerConfig() == null) {
            setSelected(loggers.get(0));
            return;
        }
       
        LoggerConfig clone = loggingInfo.findLoggerConfig(details.getEditedLoggerConfig().getName());
        if(clone == null) {
            setSelected(loggers.get(0));
            return;
        }
       
View Full Code Here


            }
        });
    }
   
    private LoggerConfig makeLogger(ModelNode node, String name) {
        LoggerConfig model = factory.loggerConfig().as();
        model.setName(name);
        model.setLevel(node.get("level").asString());

        List<String> handlers = new ArrayList();

        if (node.hasDefined("handlers")) {
            List<ModelNode> handlerModels = node.get("handlers").asList();
            for (ModelNode handlerNode : handlerModels) {
                handlers.add(handlerNode.asString());
            }
        }

        model.setHandlers(handlers);

        return model;
    }
View Full Code Here

    @Override
    public void updateLoggingInfo(LoggingInfo loggingInfo) {
        List<LoggerConfig> loggers = new ArrayList();
        loggers.add(loggingInfo.getRootLogger()); // root logger is always first in list
        loggers.addAll(loggingInfo.getLoggers());
        LoggerConfig lastLoggerConfigEdited = null;
        if (loggingInfo.getLoggerConfigEdited() != null) {
            // Look up by name.
            lastLoggerConfigEdited = loggingInfo.findLoggerConfig(loggingInfo.getLoggerConfigEdited());
        }
        loggerConfigEditor.updateEntityList(loggers, lastLoggerConfigEdited);
View Full Code Here

            }
        });
    }
   
    private LoggerConfig makeLogger(ModelNode node, String name) {
        LoggerConfig model = factory.loggerConfig().as();
        model.setName(name);
        model.setLevel(node.get("level").asString());

        List<String> handlers = new ArrayList();

        if (node.hasDefined("handlers")) {
            List<ModelNode> handlerModels = node.get("handlers").asList();
            for (ModelNode handlerNode : handlerModels) {
                handlers.add(handlerNode.asString());
            }
        }

        model.setHandlers(handlers);

        return model;
    }
View Full Code Here

            }
        });
    }
   
    private LoggerConfig makeLogger(ModelNode node, String name) {
        LoggerConfig model = factory.loggerConfig().as();
        model.setName(name);
        model.setLevel(node.get("level").asString());

        List<String> handlers = new ArrayList();

        if (node.hasDefined("handlers")) {
            List<ModelNode> handlerModels = node.get("handlers").asList();
            for (ModelNode handlerNode : handlerModels) {
                handlers.add(handlerNode.asString());
            }
        }

        model.setHandlers(handlers);

        return model;
    }
View Full Code Here

            }
        });
    }
   
    private LoggerConfig makeLogger(ModelNode node, String name) {
        LoggerConfig model = factory.loggerConfig().as();
        model.setName(name);
        model.setLevel(node.get("level").asString());

        List<String> handlers = new ArrayList();

        if (node.hasDefined("handlers")) {
            List<ModelNode> handlerModels = node.get("handlers").asList();
            for (ModelNode handlerNode : handlerModels) {
                handlers.add(handlerNode.asString());
            }
        }

        model.setHandlers(handlers);

        return model;
    }
View Full Code Here

TOP

Related Classes of org.jboss.as.console.client.shared.subsys.logging.model.LoggerConfig

Copyright © 2018 www.massapicom. 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.