Does logback support log4j appenders?

拟墨画扇 提交于 2019-12-04 04:31:20

The following document describes how to "[migrate] custom log4j components such as appenders or layouts to logback-classic":

http://logback.qos.ch/manual/migrationFromLog4j.html

It should be easy to port a log4j appender to logback. There is even a document describing the process. However, if you run into problems (which you should not), don't hesitate to ask for help on the logback-dev mailing list.

objects

No, logback appenders need to implement logback's Appender interface. Should be feasible to write a wrapper appender if you wanted to use an existing log4j appender.

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