2

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!

skaffman
  • 398,947
  • 96
  • 818
  • 769
bethesdaboys
  • 1,797
  • 7
  • 22
  • 35

2 Answers2

9

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.

Dexter
  • 4,036
  • 3
  • 47
  • 55
3

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

Jim
  • 3,476
  • 4
  • 23
  • 33