Configuring the logging level

The System Data Engine includes a sample log4j2.properties file that you can use to configure System Data Engine Java™ program logging. The Java program is used to collect SMF data from Apache Kafka. You can configure the logging level in the log4j2.properties file to establish the detail level of messages that are recorded by log4j2 at run time.

Procedure

  1. Copy the log4j2.properties file from the CDP_SMP_HOME/SDE/samples directory to the CDP_HOME directory.
  2. Locate the following line and update the logging level to ERROR, WARN, DEBUG, TRACE according to your needs. By default, the logging level is INFO.
    logger.com.ibm.hbo.cdpsde.level=INFO
    Log4j2 supports five normal levels of logging as shown in the following table. The logging levels determine the logging behavior.
    Table 1. Level of messages recorded by log4j2 at run time
    Level Description
    TRACE Designates finer-grained informational events than the DEBUG.
    DEBUG Designates fine-grained informational events that are most useful to debug an application.
    INFO Designates informational messages that highlight the progress of the application at coarse-grained level.
    WARN Designates potentially harmful situations.
    ERROR Designates error events that might still allow the application to continue running.