1 Reply Latest reply on Nov 19, 2019 4:51 PM by jfisherdev

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

    jose.coelho

      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