阅读背景:

使用自定义appender和patternlayout不工作。

来源:互联网 

I am using log4j2 in my web project. I was trying to put logs directly to kafka by extending abstractAppender. As per documentation my understanding is that i can specify patternlayout for a custom appender and with that being set, my logger will send log events to kafka with formatted string but that is not happening. log4j2.xml looks likeI am using log4j2 in my web project. I was tryi




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: