package org.kie.server.swarm.ml;


import java.util.Arrays;

import org.kie.server.swarm.AbstractKieServerMain;
import org.wildfly.swarm.Swarm;
import org.wildfly.swarm.jaxrs.JAXRSArchive;

public class KieServerMain extends AbstractKieServerMain {
    
    public static void main(String[] args) throws Exception {
    	Swarm container = new Swarm();

        System.out.println("\tBuilding kie server deployable...");
        JAXRSArchive deployment = createDeployment(container);
        
        System.out.println("\tStaring Wildfly Swarm....");
        container.start();    
        
        System.out.println("\tConfiguring kjars to be auto deployed to server " + Arrays.toString(args));
        installKJars(args);
        
        System.out.println("\tDeploying kie server ....");
        container.deploy(deployment);
    }
}

@@ -52,16 +52,42 @@
 .Arrays;
+%0Aimport java.util.HashMap;
 %0A%0Aimport
@@ -192,26 +192,123 @@
 arm.
-jaxrs.JAXRSArchive
+config.logging.Level;%0Aimport org.wildfly.swarm.jaxrs.JAXRSArchive;%0Aimport org.wildfly.swarm.logging.LoggingFraction
 ;%0A%0Ap
@@ -598,16 +598,326 @@
 tainer);
+%0A%0A        container.fraction(%0A            new LoggingFraction()%0A                .consoleHandler(%22CONSOLE%22, c -%3E %7B%0A                    c.level(Level.INFO);%0A                    c.formatter(%22%25d%7BHH:mm:ss,SSS%7D %25-5p %5B%25c%5D (%25t) %25s%25e%25n%22);%0A                %7D)%0A                .rootLogger(Level.INFO, %22CONSOLE%22)%0A        );
 %0A       

Add Logging configuration into Kie-ML server