Override log resource at command line

When you execute applications packaged in Java Web Archive (war) file with the fglgar command line tool, you can also override JGAS resources with the --resource-overwrite option.

If you use the override resource option -E or --resource-overwrite at the command line, it takes precedence over all resources configured in the interface for the application or service or the global resources set.

  1. The fglgar run command is used to start the JGAS in standalone mode and deploy applications. At the command line type the command for your war file, this is shown as hello.war in the example:
    fglgar run -w hello.war -E log.console.categories=ALL

    The -E or --resource-overwrite option overwrites the default category of logs written to the standard output for applications deployed in the war.

    The output at the command line indicates that the JGAS is started.
  2. In a browser enter the address of your deployed application, for example http://localhost:8080/ua/r/HelloWorld
    As you interact with the application in the browser you should see that the output at the command line includes the expected category of logs.