问题
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