How do I set logging level in Glassfish?

bethesdaboys picture bethesdaboys · Feb 7, 2012 · Viewed 11.1k times · Source

We are running glassfish 2.1; I want to reduce the chattiness of the logging to server.log but cannot find what config file allows me to do this. (I'm assuming this will use log4J syntax.) thanks!

Answer

Dexter picture Dexter · Jul 29, 2018

I think the ans need an update in 2018 (after 6 long yrs). The log level option can be viewed by traversing following tabs in left hand side of Glassfish (4.x) Admin Console:

Configuration -> Server Config -> Logger Settings.

Then select: 'Logger Levels'.

enter image description here


enter image description here

Note:

Different Log Levels in order are:

SEVERE, WARNING, INFO, CONFIG, FINE, FINER, and FINEST.

where SEVERE is least detailed and FINEST is most detailed.