开发者

Is there a Non-blocking NIO version of Socket Appender for Log4j?

开发者 https://www.devze.com 2023-03-21 03:26 出处:网络
I am implementing a logging system for scattered web load testing application. It requires remote agents to send log events to controller frequently (5-10 events per second) with large log messages (

I am implementing a logging system for scattered web load testing application.

It requires remote agents to send log events to controller frequently (5-10 events per second) with large log messages (100K-500K per log event).

I want to know is th开发者_开发技巧ere a non-blocking NIO implementation for Socket Appender for Log4j ? If yes, will it be able to fullfil the requirements?

Thanks, Ellick


Check AsyncAppender out.

Here's a blog entry with a usage example and a few tips: http://www.spartanjava.com/2009/asynchronous-logging-with-log4j/

HTH


That's up to 5MB per second. Using or not using NIO won't make much difference. I would be more concerned about whether the network can handle that, from multiple sources.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号