Home kellton

Main navigation

  • Services
    • Digital Business Services
      • AI & ML
        • Agentic AI Platform
        • Rapid Customer Verification
        • NeuralForge
        • Utilitarian AI
        • Predictive Analytics
        • Generative AI
        • Machine Learning
        • Data Science
        • RPA
      • Digital Experience
        • Product Strategy & Consulting
        • Product Design
        • Product Management
      • Product Engineering
        • Digital Application Development
        • Mobile Engineering
        • IoT & Wearables Solutions
        • Quality Engineering
      • Data & Analytics
        • Data Consulting
        • Data Engineering
        • Data Migration & Modernization
        • Analytics Services
        • Integration & API
      • Cloud Engineering
        • Cloud Consulting
        • Cloud Migration
        • Cloud Managed Services
        • DevSecOps
      • NextGen Services
        • Blockchain
        • Web3
        • Metaverse
        • Digital Signage Solutions
    • SAP Hide
      • ServiceNow
        • AI Solutions
        • Implementation Services
        • Optimization Services
        • Consulting Services
      • SAP
        • S/4HANA Implementations
        • SAP AMS Support
        • SAP Automation
        • SAP Security & GRC
        • SAP Value Added Solutions
        • Other SAP Implementations
      • View All Services
  • Platforms & Products
    • Audit.io
    • Kai SDLC 360
    • Tasks.io
    • Optima
    • tHRive
    • Kellton4Health
    • Kellton4Commerce
    • KLGAME
    • Our Data Accelerators
      • Digital DataTwin
      • SmartScope
      • DataLift
      • SchemaLift
      • Reconcile360
    • View All Products
  • Industries
    • Fintech, Banking, Financial Services & Insurance
    • Retail, E-Commerce & Distribution
    • Pharma, Healthcare & Life Sciences
    • Non-Profit, Government & Education
    • Travel, Logistics & Hospitality
    • HiTech, SaaS, ISV & Communications
    • Manufacturing
    • Oil,Gas & Mining
    • Energy & Utilities
    • View All Industries
  • Our Partners
    • AWS
    • Microsoft
    • ServiceNow
    • View All Partners
  • Insights
    • Blogs
    • Brochures
    • Success Stories
    • News / Announcements
    • Webinars
    • White Papers
  • Careers
    • Life At Kellton
    • Jobs
  • About
    • About Us
    • Our Leadership
    • Testimonials
    • Analyst Recognitions
    • Investors
    • Corporate Sustainability
    • Privacy-Policy
    • Contact Us
    • Our Delivery Centers
      • India Delivery Center
      • Europe Delivery Center
Search
  1. Home
  2. All Insights
  3. Blogs

Explained: How to Integrate Log4J2 with webMethods?

Product Engineering
Integration & API
May 07 , 2019
Posted By:
Digital Practice Team
linkedin
3 min read
Log4J2 with webMethods

Other recent blogs

Azure Synapse Analytics
Azure Synapse Analytics: Road to Data Warehousing and Analytics
February 09 , 2026
 Kellton’s Expert Insights on Overcoming Hesitancy on Cloud Migration
Cloud Migration: Kellton’s Expert Insights on Overcoming Hesitancy
February 06 , 2026
ai in banking and finance
AI in Banking: Use Cases, Benefits, and the Future of Finance
February 04 , 2026

Let's talk

Reach out, we'd love to hear from you!

Image CAPTCHA
Enter the characters shown in the image.
Get new captcha!

Log4J is a Java-based framework that can be integrated with various platforms and used for custom logging purposes. An upgrade to Log4J with significant improvements, Version 2.x is garbage-free and logs asynchronously using LMAX Disruptor, thereby resulting in low latencies and increased throughput.

Why Log4J?

Log4J is an independent logging mechanism for webMethods environment. Using custom logs, developers find it easier to log the entry/exit point of each service with the request and response XML. These are also helpful in identifying WARN, INFO, FATAL, ERROR, and DEBUG logs.

Integrating Log4J2 with webMethods

Below is the step-by-step guide to performing smooth integration of Log4J2 with webMethods.

Technologies used:

  • webMethods Integration Server 9.X
  • Jog4J2 Package and log4j2.xml file
  • JAR files to place in the Integration Server classpath

Step 1: Install Log4J webMethods Package

Install the Log4J webMethods package in the webMethods Integration Server. You can download it here: Download

Step 2: Define Appenders and Loggers

Edit the "log4j2.xml" file as per your environment and configuration, and place the "log4j2.xml" file in the "...\SoftwareAG\IntegrationServer\instances\default\config" location

The screenshot below shows you the basic environment changes:

1

Log4J provides default Appenders that manage logging of messages to multiple targets. It also provides asynchronous and synchronous loggers.

The user can create custom Appenders and Loggers. If custom Appenders and Loggers are absent in the "log4j2.xml" file, Log4J will automatically provide the default configuration and will log the data to default folder mentioned in the "log4j2.xml" file.

The screenshot below displays the Default Appender and custom demo Appender.
2

3

Step 3: Enable reading of Log4J2.xml through Log4J Wrapper Configurations

Edit the "...\SoftwareAG\profiles\IS_default\configuration\custom_wrapper.conf" file and copy the below settings as shown in the below screenshot:

wrapper.java.additional.204=-Dlog4j.configurationFile=file:///c:/SoftwareAG/IntegrationServer/instances/default/config/log4j2.xml
wrapper.java.additional.205=-DAsyncLogger.RingBufferSize=132000
wrapper.java.additional.206=-Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl
wrapper.java.additional.302=-DLog4jContextSelector=org.apache.logging.log4j.core.async.AsyncLoggerContextSelector

4

Step 4: Configure Environment Variables

Edit the "...\SoftwareAG\profiles\IS_default\bin\setenv.bat" file and copy the below settings as shown in the screenshot

SET JAVA_CUSTOM_OPTS=-Dlog4j.configurationFile=file:///c:/SoftwareAG/IntegrationServer/instances/default/config/log4j2.xml -DAsyncLogger.RingBufferSize=132000 -Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl
 

5

Step 5: Execute Log4J2 JAR Files

Copy the latest "log4j-api-2.8.2.jar," "log4j-core-2.8.2.jar" and "disruptor-3.3.4.jar" (Check for the mentioned JARs in the web for the latest version) files to

"...\SoftwareAG\IntegrationServer\instances\default\packages\Log4j\code\jars" location

6

Step 6: Activate Log4J2 Logging in webMethods

After completing the above five steps, shutdown and start (do not restart option) the Integration Server.

Implement logging by using the Log4J flow services in the "Log4j" package. You can implement custom logging as per your requirements by making changes to the configuration file and using the flow services in the "Log4j" package.

7
Use "Log4j.base.services:logMessage" service for log testing. The flowchart below explains the high-level logic of this wrapper service as implemented by us.

8

The screenshot below shows the data logged into the file at the location specified in the "log4j2.xml" file.

9

Want to know more?

ai development cost
Blog
How much does Custom AI Development cost in 2026?
January 29 , 2026
Legacy App Modernization
Blog
What is Legacy App Modernization? A 2026 Guide to Future-Proofing
January 23 , 2026
 API Testing Tools
Blog
Top API Testing Tools for 2026: A Quick Guide to Choosing the Right One
January 13 , 2026

North America: +1.844.469.8900

Asia: +91.124.469.8900

Europe: +44.203.807.6911

Email: ask@kellton.com

Footer menu right

  • Services
  • Platforms & Products
  • Industries
  • Insights

Footer Menu Left

  • About
  • News
  • Careers
  • Contact
LinkedIn Twitter Youtube Facebook
Recognized as a leader in Zinnov Zones Digital Engineering and ER&D services
Kellton: 'Product Challenger' in 2023 ISG Provider Lens™ SAP Ecosystem
Recognized as a 'Challenger' in Avasant's SAP S/4HANA services
Footer bottom row seperator

© 2026 Kellton