App Connect

App Connect

Join this online user 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.

 View Only

Implement Log4j by providing configuration details in a server.config.yaml file.

  • 1.  Implement Log4j by providing configuration details in a server.config.yaml file.

    Posted Tue November 19, 2024 08:16 AM
      |   view attached

    Hi Dear folks, I am trying to implement log4j version 2 in ibm app connect v 12. the configuration i am supplaying through server.config.yaml file as below.

    Configuration:
      status: warn
      appenders:
        Console:
          name: Console
          target: SYSTEM_OUT
          layout:
            type: PatternLayout
            pattern: "%d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"
        File:
          name: FileAppender
          fileName: C:/Logs/app.log
          layout:
            type: PatternLayout
            pattern: "%d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"
      loggers:
        root:
          level: debug
          appender-ref:
            - ref: Console
            - ref: FileAppender

    and when i started server, it is not considering configuration details from yaml file but it is using default configuration.

    Can you please anyone if you know, help me out. i would appreciate your kind help.



    ------------------------------
    Votarikari Shravan
    IIB/ACE Developer
    ------------------------------