Customizing log4j1 configuration

Important: The log4j1 utility is deprecated from Fix Pack 30 release. Hence, the content on this page will be soon obsolete.

The application uses the log4j1 utility for logging. The log4j1 utility writes trace and debug information to a log file. You can modify the logging parameters in the log4j1 configuration file to control the location and level of the log files. You can configure the logger to send different categories of messages to different destinations. Categories are organized hierarchically, which permits inheritance. Each category can be configured with a priority to indicate a severity level. If a category is not configured with a priority, it inherits the priority of its closest ancestor with an assigned priority.

You can customize the log4j1 configuration file in one of the following ways:
  • Differential extensibility of log4j1 configuration

    With differential extensibility, you need to only update the custom log4jconfig.xml file and the changes are overlaid on the application-provided log4jconfig.xml file, unlike Override Extensibility, where you need to create a copy of the application-provided log4jconfig.xml and customize it. Differential extensibility provides flexibility during upgrades.

  • Override extensibility of log4j1 configuration

    With override extensibility, you can customize the log4j1 configuration by creating a copy of the application-provided log4jconfig.xml file and extending it.

Note: IBM recommends differential extensibility method for customizing the log4j1 configuration.