migrating a project from log4j to slf4j+log4j

前端 未结 2 1366
渐次进展
渐次进展 2021-02-19 10:38

I have a large web project that uses log4j directly, together with many 3rd-party libraries and a mix of logging libraries.

  • our code base - uses log4j directly.
2条回答
  •  我在风中等你
    2021-02-19 10:51

    The only benefit I see for switching, is that you can funnel all the logging frameworks through only one framework, which might simplify your configuration.

    Probably the main reasons why I moved to slf4j (this only applies to slf4j + logback) is that you can reload the configuration via JMX, which is GREAT when you have a problem that disappears with a server restart.

提交回复
热议问题