Package org.rhq.common.jbossas.client.controller

Examples of org.rhq.common.jbossas.client.controller.LoggingJBossASClient


     * @param serverProperties the server properties, which includes the default log level to use
     * @throws Exception
     */
    public static void configureLogging(ModelControllerClient mcc, HashMap<String, String> serverProperties)
        throws Exception {
        LoggingJBossASClient client = new LoggingJBossASClient(mcc);

        // we want to create our own category
        String val = buildExpression(ServerProperties.PROP_LOG_LEVEL, serverProperties, true);
        client.setLoggerLevel("org.rhq", val);
        LOG.info("Logging category org.rhq set to [" + val + "]");

        client.setLoggerLevel("org.jboss.as.config", "INFO"); // BZ 1004730
        client.setLoggerLevel("org.rhq.enterprise.gui.common.framework", "FATAL"); // BZ 994267

        //noinspection StringBufferReplaceableByString
        StringBuilder sb = new StringBuilder("not(any(");
        sb.append("match(\"JBAS015960\")"); // BZ 1026786
        sb.append(",");
        sb.append("match(\"JBAS018567\")"); // BZ 1026786
        sb.append(",");
        sb.append("match(\"JBAS018568\")"); // BZ 1026786
        sb.append(",");
        sb.append("match(\"JSF1051\")"); // BZ 1078500
        sb.append(",");
        sb.append("match(\"PBOX00023\")"); // BZ 1026799, BZ 1144998
        sb.append(",");
        sb.append("match(\"IJ000906\")"); // BZ 1127272, waiting for fix of https://bugzilla.redhat.com/show_bug.cgi?id=1032641
        sb.append(",");
        sb.append("match(\"ARJUNA016009\")"); //BZ 1144998, waiting for fix of https://issues.jboss.org/browse/WFLY-2828
        sb.append(",");
        sb.append("match(\"JBAS014807\")"); //BZ 1144998, missing web subsystem is expected at times
        sb.append(",");
        sb.append("match(\"admin/user/UserAdminPortal\")"); //BZ 994267
        sb.append("))");
        client.setFilterSpec(sb.toString());
    }
View Full Code Here

TOP

Related Classes of org.rhq.common.jbossas.client.controller.LoggingJBossASClient

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.