Log4j 2
  1. Log4j 2
  2. LOG4J2-251

Support advertisement of configuration text

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      It may be useful to support advertisement of the configuration itself, either json or xml.

      The advertiser map should provide:
      contentType (application/json or text/xml)
      content (the actual configuration text)
      name ("configuration")

        Activity

        Hide
        Scott Deboy added a comment -

        Advertising the configuration at the end of baseconfiguration subclasses of setup (called from start)

        Overriding stop in the baseconfiguration subclasses which advertise the configuration so that the configuration can be 'unadvertised' (and reconfiguration/subsequent start will advertise the new configuration).

        Show
        Scott Deboy added a comment - Advertising the configuration at the end of baseconfiguration subclasses of setup (called from start) Overriding stop in the baseconfiguration subclasses which advertise the configuration so that the configuration can be 'unadvertised' (and reconfiguration/subsequent start will advertise the new configuration).
        Hide
        Scott Deboy added a comment -

        Fix committed in svn trunk revision 1480877

        Commit msg:

        Expose the XML or JSON configuration text via the Advertiser mechanism.

        content: the configuration text
        contentType: text/xml or application/json
        name: configuration

        Advertised during configuration.start, unadvertised during configuration.stop if the Advertiser is set

        Show
        Scott Deboy added a comment - Fix committed in svn trunk revision 1480877 Commit msg: Expose the XML or JSON configuration text via the Advertiser mechanism. content: the configuration text contentType: text/xml or application/json name: configuration Advertised during configuration.start, unadvertised during configuration.stop if the Advertiser is set
        Hide
        Scott Deboy added a comment -

        Expose the XML or JSON configuration text via the Advertiser mechanism.

        MulticastDNSAdvertiser has a limit of 255 bytes for labels and values. If an entry is greater than 255 bytes, the entry is now removed prior to publishing.

        The log4j configuration content was exceeding this limit. This limit is specific to Multicast DNS.

        Added a 'location' key, with the location (file path) if it is available

        Show
        Scott Deboy added a comment - Expose the XML or JSON configuration text via the Advertiser mechanism. MulticastDNSAdvertiser has a limit of 255 bytes for labels and values. If an entry is greater than 255 bytes, the entry is now removed prior to publishing. The log4j configuration content was exceeding this limit. This limit is specific to Multicast DNS. Added a 'location' key, with the location (file path) if it is available
        Hide
        Remko Popma added a comment -

        Scott,
        Not 100% sure if this is related, but could you take a look at this chainsaw/advertise question on stackoverflow:

        http://stackoverflow.com/questions/16474939/log4j2-to-chainsaw-hello-world-not-working-what-am-i-doing-wrong

        Show
        Remko Popma added a comment - Scott, Not 100% sure if this is related, but could you take a look at this chainsaw/advertise question on stackoverflow: http://stackoverflow.com/questions/16474939/log4j2-to-chainsaw-hello-world-not-working-what-am-i-doing-wrong

          People

          • Assignee:
            Scott Deboy
            Reporter:
            Scott Deboy
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development