Running payara server for test or production requires sometimes more details about the running services. In this case you can increase the log level for a java-package or a single java class.
First you need to log into the server and run the asadmin command:
$ cd ~/appserver/glassfish/bin $ asadmin
Next you can list the current loggers:
asadmin> list-log-levels Enter admin password for user "admin"> ShoalLogger com.hazelcast com.sun.enterprise.server.logging.GFFileHandler com.sun.enterprise.server.logging.SyslogHandler .......
To set a specific log level run
set-log-levels com.foo.MyService=FINEST
And don’t forget to disable the log level after debugging đ