Change the logging level of Event-Processing-Manager
search cancel

Change the logging level of Event-Processing-Manager

book

Article ID: 417682

calendar_today

Updated On:

Products

VMware Smart Assurance Network Observability

Issue/Introduction

This article explains how the level of logging used in Watch4net|M&R can be changed to suit requirements when more/less detail is required in Event Processing Manager (processing) log files.

Environment

Watch4Net/M&R - 7.x

Resolution

The Watch4net logging detail settings range from SEVERE to FINEST as follows:

  • SEVERE (highest level logging with least detail)
  • WARNING
  • INFO (default logging level)
  • FINE
  • FINEST (lowest level logging with most detail)

To change the level of logging used by Watch4net, do the following:

  1. Navigate to the Watch4net /conf directory here:
/opt/APG/Event-Processing/Event-Processing-Manager/[relevant manager]/conf/
  1. Find and open the logging.properties file in an appropriate editor.
  2. Change the level of logging to the desired level of detail. There are two locations in the logging.properties file where you need to change the logging detail setting. These are in the Global properties and Facility specific properties sections at the top and bottom of the file. Examples of this file with logging levels set to INFO and FINEST are shown below following this procedure.
  3. Save and close the logging.properties file.
  4. Restart the Watch4net Event-Processing-Manager to apply the changes in the active environment.

Watch4net logging level set to INFO in logging.properties file

############################################################
#      Global properties
############################################################

handlers=java.util.logging.FileHandler, com.watch4net.apg.health.logging.HealthLogHandler

.level=INFO

############################################################
# Handler specific properties.
# Describes specific configuration info for Handlers.
############################################################

# default file output is in user's home directory.
java.util.logging.FileHandler.pattern=logs/processing-%g-%u.log
java.util.logging.FileHandler.level=ALL
java.util.logging.FileHandler.limit=1048576
java.util.logging.FileHandler.count=100
java.util.logging.FileHandler.formatter=com.watch4net.apg.common.logging.ApgLogFormatter


############################################################
# Facility specific properties.
# Provides extra control for each logger.
############################################################

com.watch4net.apg.v2.level=INFO

Watch4net logging level set to FINEST in logging.properties file

############################################################
#  	Global properties
############################################################

handlers=java.util.logging.FileHandler, com.watch4net.apg.health.logging.HealthLogHandler

.level=FINEST

############################################################
# Handler specific properties.
# Describes specific configuration info for Handlers.
############################################################

# default file output is in user's home directory.
java.util.logging.FileHandler.pattern=logs/processing-%g-%u.log
java.util.logging.FileHandler.level=ALL
java.util.logging.FileHandler.limit=1048576
java.util.logging.FileHandler.count=100
java.util.logging.FileHandler.formatter=com.watch4net.apg.common.logging.ApgLogFormatter


############################################################
# Facility specific properties.
# Provides extra control for each logger.
############################################################

com.watch4net.apg.v2.level=FINEST