App Connect

 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 2 days ago
      |   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
    ------------------------------