IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
  • 1.  "No Log4j 2 configuration file found" when using Log4j2

    Posted 09/11/19 06:01 AM

    Hello,

    I am trying to develop a logging framework and I am using Log4j2 for that. I have created a new package and imported below jars as well. But when I try to initialize LogManager, I get below warning and configuration does not load. Does anyone have any idea what could be wrong ?

    Jars imported :
    log4j-API-2.12.1.jar
    log4j-core-2.12.1.jar

    Warning Message :
    ERROR StatusLogger No Log4j 2 configuration file found. Using default configuration (logging only errors to the console), or user programmatically provided configurations. Set system property ‘log4j2.debug’ to show Log4j 2 internal initialization logging. See Log4j – Configuring Log4j 2 for instructions on how to configure Log4j 2

    Java Code :

    org.apache.logging.log4j.Logger logger = LogManager.getLogger(loggerName);
    log.debug(“Test Log”);

    Attached is how my package directory looks like.

    Capture.PNG


    #webMethods
    #Integration-Server-and-ESB


  • 2.  RE: "No Log4j 2 configuration file found" when using Log4j2

    Posted 09/11/19 08:22 AM

    There is one available at tech community for public use, hope it might help.

    http://techcommunity.softwareag.com/ecosystem/communities/public/webmethods/products/bpm_suite/codesamples/59bf91a8-b1d3-11e4-8d00-cd8d7ef22065/

    Meanwhile, I can check this error and try to post a working sample.


    #Integration-Server-and-ESB
    #webMethods


  • 3.  RE: "No Log4j 2 configuration file found" when using Log4j2

    Posted 10/22/20 04:45 PM

    Hi all, who solved this issue? Please advise the solution.


    #webMethods
    #Integration-Server-and-ESB