Changing Log Levels

Once you have decided to change a log level, you may do it in two different ways. You may change it in existing (running) nodes only or you may change it permanently as part of the configuration. If done as part of the configuration, new nodes will get the new log level when they are started.

Changing Log Levels in Running Application Nodes

Note that changing log levels in this way overrides log levels defined in the configuration of the grid, but the change is not persisted as the configuration is. So, any changes made will be lost as soon as a node is stopped.

To change log levels in running application nodes

  1. Navigate to the Topology Overview page in the Grid Management pages and click on the Logging link at the top of the page.

  2. On the Logging page, click the Log Levels link.

    You will be presented with a hierarchical list of loggers organized by application. For each logger you may also see the currently enabled log levels.

  3. Locate your application in the list and possibly the individual logger you would like to change.

  4. Click on the name link of the application or logger you want to change and set the desired log levels in the dialog box that is presented.

Permanently Changing Log Levels in the Grid Configuration

If a more permanent change of log levels is desired, it is better to reconfigure the log levels and store the change in the grid configuration. This has the advantage that nodes will use the changed log levels even if they are stopped and restarted. Log levels are configured using grid properties. For general information on working with grid properties, see Grid Properties.

To permanently change log levels in the grid configuration

  1. Navigate to the Configuration Manager.

  2. Click the Applications link.

  3. In the list, select the application that you would like to change log levels for.

  4. Click Edit Properties.

  5. Locate the property named Node Log Level in the Grid Defined Properties section. This section is below the application defined properties. You may need to expand it to see the Node Log Level property.

  6. Edit the log level for the application by clicking on the value link in the value column.

  7. In the resulting dialog box, select the log levels that you want.

    If the node log level has been overridden or configured in several contexts, you will not see a simple dialog box, but rather a matrix that lets you configure the property differently for different contexts. For more information about configuring a property for different contexts, see Grid Properties.

  8. Be sure to save the configuration when you are done editing by clicking the save button at the top of the page.

More advanced configuration alternatives to the one described above exist. As described in Property Contexts, it is also possible to set the log levels in different contexts. You do that by clicking on the property name rather than the property value in the list described above.

Yet another more advanced way of configuring log levels is to configure different log levels for different loggers. This is done by another grid property called Node Log Detail Level. This property is found next to the Node Log Level property. The Node Log Detail Level property is a map from the logger name to a set of log levels. Add new entries as needed and specify the name of the logger as the key combined with the desired log levels.

Note: 

Changing the log level in the configuration does not affect existing application nodes. The changes only take effect when you start new nodes.