Java中的异步非阻塞远程日志记录?
是否有一个轻量级日志框架/服务器可以用来在 Java 中设置远程日志记录?我知道 log4j 有 SocketAppenders,但是 a) 我想要一个开箱即用的库,我可以在其中简单地运行日志服务器,b) 我希望日志记录调用完全异步,并且与其余代码无关,c )日志服务器上一个基于网络的仪表板/查看器也很好
Is there a lightweight logging framework/server I can use to setup remote logging in Java? I know log4j has SocketAppenders but a) I want a library that is more out of the box where I can simply run a log server, b) I want the logging calls to be completely asynchronous non-blocking from the rest of the code and c) A nice web based dashboard/viewer on the log-server would be also nice
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以将 log4j 与
SyslogAppender
一起使用,并使用一些 用于查看系统日志的工具(-ng)。使用 log4j 附带的异步附加器包装器,可以找到一篇关于该内容的好文章 在这里。
You could use log4j with a
SyslogAppender
and use some tool for viewing the syslog(-ng).Use the async appender wrapper that ships with log4j, a nice article about that can be found here.
Apache Flume 和 Apache Kafka 是两种可能有用的解决方案。我最近看到高可扩展性人群多次提到它们。
不过,两者都与 log4j 不是特别相似。
Apache Flume and Apache Kafka are two solutions that may be of use. I've seen them mentioned by the high scalability crowd a fair bit recently.
Neither is particularly similar to log4j, though.