Go to the GlassFish administration console
open: Configurations -> server-config -> JVM Settings
Check Debug enabled
Save changes
Restart GlassFish