Hi, Backend Engineers. BEI has released new major version of bei-common-libraries which apply non backward compatible changes. The major changes involves upgrade logging implementation as announced on Improve Logging Library post in last December.
application-jetty
module.
SentryAppender
class and introduces SentryAppenderComponent
which implement appender from Log4j2 on sentry-platform
module. Wiki here.
application-jetty
module. How to see below.
bei-common-libraries
to the latest version of v11.x.x.
org.slf4j:slf4j-api:1.7.25
as your compile dependencies. To log on your test classes, add org.slf4j:slf4j-simple:1.7.25
as your test compile dependencies. You MUST NOT add any slf4j binding dependency on your compile dependencies since
SentryAppender
class from sentry-platform
module, please refactor using SentryAppenderComponent
. Wiki here.
logLayout = LogLayout.JSON
at @LogConfig
at @TravelokaApplication
annotation on your TopLevelComponent
.
The steps are the same as previous repo, but since we can't apply latest library only on specific modules, BEI already created the diffs for monorepo. Service owners only need to review them. The most critical parts are refactor custom logging (e.g. custom Log4jUtil
and appender classes) and refactor SentryAppender
. Most of them(if not all) are already unit-tested. Please make sure if your services are going to log properly on staging and production. Also please refactor modules that applied using binary dependency on monorepo.
(*put diffs here*)