Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-1136

Add subAppend in Log4jAppender for generic usage

    XMLWordPrintableJSON

    Details

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

      Description

      KafkaLog4jAppender is quite useful for us to send our log4j logs to the Kafka system with ease. However, according to our experience, it is not so that convenient to customize the message content before emitting it out. Sometimes, we need to decorate the message like adding more system level information before passing it to the producer. I wonder if it is possible to add one subAppend() function, like org.apache.log4j.WriterAppender does. Thus, the end user can customize their message by overwriting the subAppend() only in their own hierarchy class, and re-use all the rest part.

        Attachments

        1. KAFKA-1136.diff
          1 kB
          Jie Huang

          Activity

            People

            • Assignee:
              junrao Jun Rao
              Reporter:
              grace.huang Jie Huang
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: