For those who don't know yet, Spring Boot considers switching from Logback
to Log4j <https://github.com/spring-projects/spring-boot/issues/22149>.
Ralph is performing a great lobbying example there. Recently the ticket has
been updated with the following feature checks I have attached below.
Spring Boot will make a great customer for many perspectives of the Log4j
project; visibility, improvements, stability, etc. I am personally really
excited about this development and watching it closely. I wanted to share
these news with the rest of you.

---------- Forwarded message ---------
From: Andy Wilkinson <notificati...@github.com>
Date: Tue, Apr 6, 2021 at 10:42 AM
Subject: Re: [spring-projects/spring-boot] Investigate impact of switching
default logging system to log4j2 (#22149)
To: spring-projects/spring-boot <spring-b...@noreply.github.com>
Cc: Volkan Yazıcı <volkan.yaz...@gmail.com>, Manual <
man...@noreply.github.com>


@rgoers <https://github.com/rgoers> Thank you.

One area that's just come up is providing log4j2-based support for the
<springProfile>
<https://docs.spring.io/spring-boot/docs/2.4.4/reference/htmlsingle/#profile-specific-configuration>
and the <springProperty>
<https://docs.spring.io/spring-boot/docs/2.4.4/reference/htmlsingle/#environment-properties>
elements that we currently support with Logback.

<springProperty> is rather like a lookup and is quite similar to the
existing Spring Boot lookup. <springProperty> doesn't have a dependency on
Spring Cloud whereas it appears the Log4j2's Spring Boot lookup does?

<springProfile> provides some basic conditional configuration support,
allowing configuration to be applied based on the Spring profiles that are
active. From what I've seen, there isn't something similar in Log4j2 at the
moment.

Spring Boot 3 is by no means imminent (it won't be in 2021) so there's no
urgency here at the moment, but it would be interesting to explore what
plugging <springProperty> and <springProfile> support into Log4j2 might
look like.

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<https://github.com/spring-projects/spring-boot/issues/22149#issuecomment-813943707>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAARTSKU7QPMXFDIVLYOSTTTHLCN3ANCNFSM4OLK5F3A>
.

Reply via email to