Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-2911

Log4j2EventListener in ...spring.cloud.config.client listens for wrong event

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.14.0
    • None
    • None

    Description

       org.apache.logging.log4j.spring.cloud.config.client.Log4j2EventListener currently listens for RemoteApplicationEvent. This is incorrenct. RemoteApplicationEvent could be any number of things, not just an event. Also, refresh events can come from more than spring cloud bus.

      When a remote refresh event is received, an EnvironmentChangeEvent (which is a spring ApplicationEvent) is published. That would be more appropriate to listen for.

      Attachments

        Activity

          People

            Unassigned Unassigned
            spencergibb Spencer Gibb
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: