Logback and Windows Event System integration

ⅰ亾dé卋堺 提交于 2021-02-11 03:37:13

问题


Has anyone integrated with success logback and the MS Windows built-in event logger? How can it be done?

It seems to me this is an important topic but I couldn't find any useful information regarding it...


回答1:


I've blogged about my implementation of logback-ntlogger: http://ykchee.blogspot.com/2012/09/logback-nt-event-log-appender.html




回答2:


It doesn't seem to exist: switch from log4j to logback

However, as is noted in that link, you can just port Log4J's NTEventLogAppender and reuse the dll's that's packaged with it.

http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/nt/NTEventLogAppender.html



来源:https://stackoverflow.com/questions/8945187/logback-and-windows-event-system-integration

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!