Java中的异步非阻塞远程日志记录?

发布于 2025-01-06 13:57:27 字数 160 浏览 2 评论 0原文

是否有一个轻量级日志框架/服务器可以用来在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

夏了南城 2025-01-13 13:57:27

您可以将 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.

⒈起吃苦の倖褔 2025-01-13 13:57:27

Apache FlumeApache 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文