1. Go to the GlassFish administration console

  2. open: Configurations -> server-config -> JVM Settings

  3. Check Debug enabled

  4. Save changes

  5. Restart GlassFish