0 Replies Latest reply on Oct 10, 2018 12:02 PM by Jose Coelho

    How to configure wildfly-cli with jboss-cli.xml

    Jose Coelho Newbie

      Hi,

       

      I have a Gradle project that I'm using WildFly-CLI java lib to deploy applications.

       

      compile group: 'org.wildfly.core', name: 'wildfly-cli', version: '4.0.0.Final'

       

      Everything works fine however I would like to disable the CLI logs on console.

      When I deploy an application the CLI logs something like:

      WARN: can't find jboss-cli.xml. Using default configuration values.
      WARN: can't find jboss-cli.xml. Using default configuration values.
      out 10, 2018 4:06:57 PM org.xnio.Xnio <clinit>
      INFO: XNIO version 3.6.2.Final
      out 10, 2018 4:06:57 PM org.xnio.nio.NioXnio <clinit>
      INFO: XNIO NIO Implementation Version 3.6.2.Final
      out 10, 2018 4:06:57 PM org.jboss.remoting3.EndpointImpl <clinit>
      

       

      I would like to disable this logging and I think this could be done with configuration in jboss-cli.xml file.

      How can I point the CLI to my jboss-cli.xml file in the project resources.

       

      Thank you,

      Jose