Configuring Business Logger for Lean Rules Engine

Context

You use this procedure to define details about the lifecycle of ruleset execution that need to be logged by business logs.

Procedure

  1. In the logging properties file of JDK in your application, add

    com.sap.brms.BusinessLogFilehandler.

  2. To configure the .handlers property file, add

    com.sap.brmbusinesslogshandler=com.sap.brms.qrules.businessloggingimpl.BusinessLogsFileHandler

  3. Add the following code in the properties file.

    com.sap.brms.qrules.businessloggingimpl.BusinessLogsFileHandler .pattern=<path>/<Filename>.log

    com.sap.brms.qrules.businessloggingimpl.BusinessLogsFileHandler.formatter=java.util.logging .SimplerFormatter

    com.sap.brms.qrules.businessloggingimpl.BusinessLogsFileHandler.append=true

    com.sap.brms.qrules.businessloggingimpl.BusinessLogsFileHandler.count=1

    com.sap.brms.qrules.businessloggingimpl.BusinessLogsFileHandler.filter=com.sap.brms.qrules.businessloggingimpl.BRMFilter

  4. Determine one of the following methods to set log levels, and then implement the relevant method.
    • Using RulesetContext method

    • Using ReteEngine property

    More information, see Determining a Method to Set Log Levels in Lean Rules Engine