Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
If you're using Gradle, I cannot recommend Louis Jacomet's logging-capabilities plugin enough!
If you're in a situation where you only depend on the APIs exposed by log4j-api (put simply: LogManager, Logger, Level, and possibly ThreadContext and/or Marker), or even use Slf4j instead (with log4j-slf4j-impl), you're in good conditions, but it's not enough.
Dependencing on the project, changing the logger might range from easy peasy to a multi-week task. I'm ready to bet that in many (most?) cases, it'd actually be quite easy, so let's explore how to do it, using Logback as the target (there aren't that many alternatives actually).