Apache Geode CHANGELOG

change loglevel

Changes the logging level on specified members. This command takes effect if the default Geode logging configuration is used.

When using a custom Log4J configuration, this command takes effect only if the member whose logging level you want to change was started using the --J=-Dgeode.LOG_LEVEL_UPDATE_OCCURS=ALWAYS system property.

The change loglevel command applies only to the members specified, whether they are servers or locators. The change does not apply to unspecified or subsequently-added members.

Availability: Online. You must be connected in gfsh to a JMX Manager member to use this command.


change loglevel --log-level=value [--members=value(,value)*] [--groups=value(,value)*]

Table 1. Change Loglevel Parameters
Name Description Default Value
--members Name or ID of one or more member(s) whose logging level you want to change.  
--groups One or more group names. The logging level changes for all members of these groups.  
--log-level Required. Log level to change. Valid options are: ALL, TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF.  

Table 1. Change Loglevel Parameters

Example Commands:

gfsh>change loglevel --log-level=DEBUG --members=server1

Sample Output:

gfsh>change loglevel --log-level=DEBUG --members=server1


                Member            | Changed log-level
--------------------------------- | -----------------<v1>:24653 | true