Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I set logging level in Glassfish?

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!

like image 977
bethesdaboys Avatar asked Nov 22 '25 23:11

bethesdaboys


2 Answers

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.

like image 52
Dexter Avatar answered Nov 25 '25 14:11

Dexter


Glassfish uses JDK (java.util) logging, which is configured in the admin UI, typically running http://server:4848

Depending on whether you installed it as developer profile (the default) or clustering, the logging settings will be two different places.

Developer profile: Application Server/Logging/Log Levels

Cluster profile: Configurations/cluster-config/logger settings/levels

like image 38
Jim Avatar answered Nov 25 '25 14:11

Jim