使用java.util.logging处理程序登录syslog的最现代方法是什么? [英] What is the most modern way to log to syslog using a java.util.logging handler?
问题描述
我专门为 java.util.logging
寻找最新,现代的 SysLogHandler
。
I am specifically looking for the most up to date, modern SysLogHandler
for java.util.logging
.
我发现一些可以追溯到2001年至2003年,现在大部分都没有得到支持。
I have found a few that date back to 2001 - 2003, mostly un-supported now.
我知道 syslog
是一个非常静态的服务,我想知道我自己写的东西,如果有的话任何支持Java 1.5和更新功能的更新的处理程序实现。
I know that syslog
is a pretty static service, I am wondering before I write something myself, if there are any newer handler implementations that support the Java 1.5 and newer features.
我不对任何其他日志框架或包装器/代理感兴趣库。
I am not interested in any of the other logging frameworks or wrapper / proxy libraries.
我不正在寻找SLF4J或任何其他替代日志框架,如问题。
I am not looking for SLF4J or any other alternative logging frameworks, as suggested in this question.
推荐答案
我遇到了同样的问题 - 我需要一个Syslog扩展类,用于 java.util.logging.Handler
I met same problem - I was need a Syslog extension class for java.util.logging.Handler
在互联网上搜索后没有任何成功,我最终创建了自己的实现 - http://code.google.com/p/agafua-syslog/ 支持UDP和TCP协议。我在生产项目中使用它。
After searching in Internet without any success, I ended up creating my own implementation - http://code.google.com/p/agafua-syslog/ with support of UDP and TCP protocols. I use it in production project.
这篇关于使用java.util.logging处理程序登录syslog的最现代方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!