This brief article demonstrates how to add and remove packages from Wildflys logging subsystem.
The logging.properties file in standalone/configuration folder is only for the Wildfly boot up, this is superseded by the Wildfly subsystem logging defined in standalone.xml after boot.
To dynamically add specific package logging to Wildflys logging subsystem use the jboss_cli.sh (or.bat) command in the jboss/bin folder.
First connect to the running Wildfly server
bin %> ./jboss-cli.sh --connect
[standalone@localhost:9990 /]
Add the package of interest, in this example I'm adding the package com.csw and setting the level to DEBUG
/subsystem=logging/logger=com.csw:add(level=DEBUG)
{"outcome" => "success"}
If you see the outcome success JSON reply as shown then this command manipulates the standalone.xml file for you. The benefit of this approach is the configuration is applied dynamically removing the need to restart Wildfly.
You can also tell the system to output to the console, this step may not be necessary in all cases
/subsystem=logging/console-handler=CONSOLE:write-attribute(name=level, value=DEBUG)
And to remove the entry from the logging subsystem
/subsystem=logging/logger=com.csw:remove
References:
https://stackoverflow.com/questions/38341352/wildfly-10-not-showing-debug-messages