asadmin> set-log-attributes com.sun.enterprise.server.logging.GFFileHandler.logtoFile=false
Log To File
Since version 184.108.40.206
Log to Console option available in both GlassFish 4.0 Open Source
Edition and Payara Server.
Log to File option will provide a way to enable
and disable logging to a file in Payara Server. When disabled this should help
to minimize disk usage. This option will be more accommodating if Payara server
is running in cloud environment where disk space is scarce.
Using the Admin Console
Log to File option using Admin Console:
Use the following command to enable or disabled logging to a file: