[jira] [Commented] (KAFKA-1136) Add subAppend in Log4jAppender for generic usage

2013-11-21 Thread Jie Huang (JIRA)

[ 
https://issues.apache.org/jira/browse/KAFKA-1136?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13829610#comment-13829610
 ] 

Jie Huang commented on KAFKA-1136:
--

Thanks. 

> Add subAppend in Log4jAppender for generic usage
> 
>
> Key: KAFKA-1136
> URL: https://issues.apache.org/jira/browse/KAFKA-1136
> Project: Kafka
>  Issue Type: Improvement
>  Components: producer 
>Reporter: Jie Huang
>Assignee: Jun Rao
>Priority: Trivial
> Fix For: 0.8.1
>
> Attachments: KAFKA-1136.diff
>
>
> 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.  



--
This message was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Updated] (KAFKA-1136) Add subAppend in Log4jAppender for generic usage

2013-11-20 Thread Jie Huang (JIRA)

 [ 
https://issues.apache.org/jira/browse/KAFKA-1136?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jie Huang updated KAFKA-1136:
-

Attachment: KAFKA-1136.diff

> Add subAppend in Log4jAppender for generic usage
> 
>
> Key: KAFKA-1136
> URL: https://issues.apache.org/jira/browse/KAFKA-1136
> Project: Kafka
>  Issue Type: Improvement
>  Components: producer 
>Reporter: Jie Huang
>Assignee: Jun Rao
>Priority: Trivial
> Attachments: KAFKA-1136.diff
>
>
> 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.  



--
This message was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Issue Comment Deleted] (KAFKA-1136) Add subAppend in Log4jAppender for generic usage

2013-11-20 Thread Jie Huang (JIRA)

 [ 
https://issues.apache.org/jira/browse/KAFKA-1136?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jie Huang updated KAFKA-1136:
-

Comment: was deleted

(was: Add subAppend in KafkaLog4jAppender for generic usage)

> Add subAppend in Log4jAppender for generic usage
> 
>
> Key: KAFKA-1136
> URL: https://issues.apache.org/jira/browse/KAFKA-1136
> Project: Kafka
>  Issue Type: Improvement
>  Components: producer 
>Reporter: Jie Huang
>Assignee: Jun Rao
>Priority: Trivial
> Attachments: KAFKA-1136.diff
>
>
> 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.  



--
This message was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Updated] (KAFKA-1136) Add subAppend in Log4jAppender for generic usage

2013-11-20 Thread Jie Huang (JIRA)

 [ 
https://issues.apache.org/jira/browse/KAFKA-1136?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jie Huang updated KAFKA-1136:
-

Status: Patch Available  (was: Open)

Add subAppend in KafkaLog4jAppender for generic usage

> Add subAppend in Log4jAppender for generic usage
> 
>
> Key: KAFKA-1136
> URL: https://issues.apache.org/jira/browse/KAFKA-1136
> Project: Kafka
>  Issue Type: Improvement
>  Components: producer 
>Reporter: Jie Huang
>Assignee: Jun Rao
>Priority: Trivial
>
> 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.  



--
This message was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Created] (KAFKA-1136) Add subAppend in Log4jAppender for generic usage

2013-11-20 Thread Jie Huang (JIRA)
Jie Huang created KAFKA-1136:


 Summary: Add subAppend in Log4jAppender for generic usage
 Key: KAFKA-1136
 URL: https://issues.apache.org/jira/browse/KAFKA-1136
 Project: Kafka
  Issue Type: Improvement
  Components: producer 
Reporter: Jie Huang
Assignee: Jun Rao
Priority: Trivial


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.  



--
This message was sent by Atlassian JIRA
(v6.1#6144)