Re: Support of log4j2

2024-01-10 Thread Ralph Goers
One thing nobody else mentioned. Given that 3.x requires Java 17 you can be 
assured that we will continue to support 2.x until Java 11s usage drops down 
under 10% (or possibly lower) based on the usage surveys. This is the same 
approach we have had with previous JDK versions. I would not expect that to 
happen for several years. As was also mentioned, our goal is to minimize the 
impact for users switching from 2.x to 3.x. 

Ralph

> On Jan 10, 2024, at 7:53 AM, Mickael Maison  wrote:
> 
> Hi,
> 
> I see that log4j3 is about to release, so I'm wondering what are the
> plans regarding future development and maintenance of log4j2? Do you
> expect to keep releasing new 2.X versions? How long do you expect to
> still maintain 2.X releases?
> 
> To provide a bit of context, the Apache Kafka project is considering
> switching to log4j2, but we're concerned that with log4j3, log4j2 will
> soon enter end of life.
> 
> Also the website states log4j3 will require Java 11 [0] but looking at
> the latest published artifacts [1], it looks like it instead requires
> Java 17 instead. Apache Kafka still supports Java 11 so we can't
> directly adopt log4j3.
> 
> Thanks,
> Mickael
> 
> 0: https://logging.apache.org/log4j/3.x/#requirements
> 1: https://logging.apache.org/log4j/3.x/download.html
> 
> -
> To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
> For additional commands, e-mail: log4j-user-h...@logging.apache.org
> 


-
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org



Re: Support of log4j2

2024-01-10 Thread Piotr P. Karwasz
Hi Mickael,


On Wed, 10 Jan 2024 at 15:53, Mickael Maison  wrote:
> I see that log4j3 is about to release, so I'm wondering what are the
> plans regarding future development and maintenance of log4j2? Do you
> expect to keep releasing new 2.X versions? How long do you expect to
> still maintain 2.X releases?

Something the other comments didn't specify is that `log4j-api` 3.x
will not break binary compatibility with `2.x` from a user's
perspective.
There will be some changes also there, but they should only concern
Log4j APi implementors and Log4j Core plugin providers.

> To provide a bit of context, the Apache Kafka project is considering
> switching to log4j2, but we're concerned that with log4j3, log4j2 will
> soon enter end of life.

That is great news. Are you planning to switch APIs (from SLF4J to
Log4j API) or implementations (from Reload4j to Log4j Core)?

The first operation should be easy, since we recently contributed an
SLF4J to Log4j API OpenRewrite recipe:

https://github.com/openrewrite/rewrite-logging-frameworks/releases/tag/v2.4.0

The second operation should be trivial, since you just need to convert
the configuration file in your binary distribution. For simple case
you can also use `Log4j1ConfigurationConverter`:

https://github.com/apache/logging-log4j2/blob/2.x/log4j-1.2-api/src/main/java/org/apache/log4j/config/Log4j1ConfigurationConverter.java

Piotr

-
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org



Re: Support of log4j2

2024-01-10 Thread Matt Sicker
Version 3 is in active development; we’re still working on several things (and 
a few more releases) before 3.0.0. In particular, documentation is an area that 
will be getting overhauled (along with migration guides and a more useful user 
manual), and we’re still auditing various bug fixes and such from 2.x that 
might not have been copied over to 3.x.

In general, we still plan on maintaining 2.x for quite a while, but we’re 
limiting this largely to bug fixes (including security), dependency updates, 
and other minor things. The goals of 3.x are to provide easier migration paths 
from 2.x, but the Java requirements make that impossible for some projects 
(like Kafka), hence the continued support for 2.x. While I’m not sure we’ve 
written down the specifics yet, the general idea is that we’d like to support 
2.x (and Java 8 and 11) for as long as those versions of Java are still a 
decent percentage of active users. We had a similar philosophy when we bumped 
our Java requirements from 6 to 7 and later from 7 to 8. In that regard, we’re 
usually one of the last projects to upgrade. The alignment on Java 17 is partly 
inspired by Spring doing the same combined with how long 3.x has been in 
development (which was originally aiming for Java 11 as the baseline).

> On Jan 10, 2024, at 8:53 AM, Mickael Maison  wrote:
> 
> Hi,
> 
> I see that log4j3 is about to release, so I'm wondering what are the
> plans regarding future development and maintenance of log4j2? Do you
> expect to keep releasing new 2.X versions? How long do you expect to
> still maintain 2.X releases?
> 
> To provide a bit of context, the Apache Kafka project is considering
> switching to log4j2, but we're concerned that with log4j3, log4j2 will
> soon enter end of life.
> 
> Also the website states log4j3 will require Java 11 [0] but looking at
> the latest published artifacts [1], it looks like it instead requires
> Java 17 instead. Apache Kafka still supports Java 11 so we can't
> directly adopt log4j3.
> 
> Thanks,
> Mickael
> 
> 0: https://logging.apache.org/log4j/3.x/#requirements
> 1: https://logging.apache.org/log4j/3.x/download.html
> 
> -
> To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
> For additional commands, e-mail: log4j-user-h...@logging.apache.org
> 


-
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org



Re: Support of log4j2

2024-01-10 Thread Volkan Yazıcı
Log4j 3... still needs quite some love, to put it mildly.

`main` branch, where Log4j 3 is cut from, is missing a huge amount of
changes from `2.x`, where Log4j 2 is cut from. We need to port those from
`2.x` to `main`. I am actively working on this.

The lacking website content is just the tip of the iceberg. There, next to
porting the existing content from `2.x`, we need to add new content
specific to Log4j 3. Christian, Piotr, and I will be actively working on
this starting from February 9. It is good that you remarked we need to
explicitly state that Log4j 2 is still supported. I added this bit to our new
website structure plan
.
If you have more feedback, please let us know.

On Wed, Jan 10, 2024 at 4:50 PM Mickael Maison 
wrote:

> Hi Volkan,
>
> Thanks for the quick reply! It's reassuring to hear you aim to keep
> supporting log4j2. Could this be added to the website?
>
> Regarding log4j3, I opened a PR to update the website to mention Java
> 17 instead of Java 11:
> https://github.com/apache/logging-log4j-site/pull/8
>
> Thanks,
> Mickael
>
> On Wed, Jan 10, 2024 at 4:17 PM Volkan Yazıcı  wrote:
> >
> > Hey Mickael,
> >
> > Thanks for reaching out to us and sharing your concerns. Community
> feedback
> > is of uttermost importance on how we prioritize development and
> maintenance
> > tasks.
> >
> > You are right that Log4j 3 is planned to target Java 17. Yet I can assure
> > you that Log4j 2 (targeting Java 8) will be around for quite a while and
> we
> > will certainly maintain it for several years.
> >
> > Cheers!
> >
> > On Wed, Jan 10, 2024 at 3:54 PM Mickael Maison 
> wrote:
> >
> > > Hi,
> > >
> > > I see that log4j3 is about to release, so I'm wondering what are the
> > > plans regarding future development and maintenance of log4j2? Do you
> > > expect to keep releasing new 2.X versions? How long do you expect to
> > > still maintain 2.X releases?
> > >
> > > To provide a bit of context, the Apache Kafka project is considering
> > > switching to log4j2, but we're concerned that with log4j3, log4j2 will
> > > soon enter end of life.
> > >
> > > Also the website states log4j3 will require Java 11 [0] but looking at
> > > the latest published artifacts [1], it looks like it instead requires
> > > Java 17 instead. Apache Kafka still supports Java 11 so we can't
> > > directly adopt log4j3.
> > >
> > > Thanks,
> > > Mickael
> > >
> > > 0: https://logging.apache.org/log4j/3.x/#requirements
> > > 1: https://logging.apache.org/log4j/3.x/download.html
> > >
> > > -
> > > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
> > > For additional commands, e-mail: log4j-user-h...@logging.apache.org
> > >
> > >
>
> -
> To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
> For additional commands, e-mail: log4j-user-h...@logging.apache.org
>
>


Re: Support of log4j2

2024-01-10 Thread Gary Gregory
I'm agree with Volkan, Log4j 2.x is stable and a great library that we plan
on supporting for the foreseeable future.

Gary

On Wed, Jan 10, 2024, 10:17 AM Volkan Yazıcı  wrote:

> Hey Mickael,
>
> Thanks for reaching out to us and sharing your concerns. Community feedback
> is of uttermost importance on how we prioritize development and maintenance
> tasks.
>
> You are right that Log4j 3 is planned to target Java 17. Yet I can assure
> you that Log4j 2 (targeting Java 8) will be around for quite a while and we
> will certainly maintain it for several years.
>
> Cheers!
>
> On Wed, Jan 10, 2024 at 3:54 PM Mickael Maison 
> wrote:
>
> > Hi,
> >
> > I see that log4j3 is about to release, so I'm wondering what are the
> > plans regarding future development and maintenance of log4j2? Do you
> > expect to keep releasing new 2.X versions? How long do you expect to
> > still maintain 2.X releases?
> >
> > To provide a bit of context, the Apache Kafka project is considering
> > switching to log4j2, but we're concerned that with log4j3, log4j2 will
> > soon enter end of life.
> >
> > Also the website states log4j3 will require Java 11 [0] but looking at
> > the latest published artifacts [1], it looks like it instead requires
> > Java 17 instead. Apache Kafka still supports Java 11 so we can't
> > directly adopt log4j3.
> >
> > Thanks,
> > Mickael
> >
> > 0: https://logging.apache.org/log4j/3.x/#requirements
> > 1: https://logging.apache.org/log4j/3.x/download.html
> >
> > -
> > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
> > For additional commands, e-mail: log4j-user-h...@logging.apache.org
> >
> >
>


Re: Support of log4j2

2024-01-10 Thread Mickael Maison
Hi Volkan,

Thanks for the quick reply! It's reassuring to hear you aim to keep
supporting log4j2. Could this be added to the website?

Regarding log4j3, I opened a PR to update the website to mention Java
17 instead of Java 11:
https://github.com/apache/logging-log4j-site/pull/8

Thanks,
Mickael

On Wed, Jan 10, 2024 at 4:17 PM Volkan Yazıcı  wrote:
>
> Hey Mickael,
>
> Thanks for reaching out to us and sharing your concerns. Community feedback
> is of uttermost importance on how we prioritize development and maintenance
> tasks.
>
> You are right that Log4j 3 is planned to target Java 17. Yet I can assure
> you that Log4j 2 (targeting Java 8) will be around for quite a while and we
> will certainly maintain it for several years.
>
> Cheers!
>
> On Wed, Jan 10, 2024 at 3:54 PM Mickael Maison  wrote:
>
> > Hi,
> >
> > I see that log4j3 is about to release, so I'm wondering what are the
> > plans regarding future development and maintenance of log4j2? Do you
> > expect to keep releasing new 2.X versions? How long do you expect to
> > still maintain 2.X releases?
> >
> > To provide a bit of context, the Apache Kafka project is considering
> > switching to log4j2, but we're concerned that with log4j3, log4j2 will
> > soon enter end of life.
> >
> > Also the website states log4j3 will require Java 11 [0] but looking at
> > the latest published artifacts [1], it looks like it instead requires
> > Java 17 instead. Apache Kafka still supports Java 11 so we can't
> > directly adopt log4j3.
> >
> > Thanks,
> > Mickael
> >
> > 0: https://logging.apache.org/log4j/3.x/#requirements
> > 1: https://logging.apache.org/log4j/3.x/download.html
> >
> > -
> > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
> > For additional commands, e-mail: log4j-user-h...@logging.apache.org
> >
> >

-
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org



Re: Support of log4j2

2024-01-10 Thread Volkan Yazıcı
Hey Mickael,

Thanks for reaching out to us and sharing your concerns. Community feedback
is of uttermost importance on how we prioritize development and maintenance
tasks.

You are right that Log4j 3 is planned to target Java 17. Yet I can assure
you that Log4j 2 (targeting Java 8) will be around for quite a while and we
will certainly maintain it for several years.

Cheers!

On Wed, Jan 10, 2024 at 3:54 PM Mickael Maison  wrote:

> Hi,
>
> I see that log4j3 is about to release, so I'm wondering what are the
> plans regarding future development and maintenance of log4j2? Do you
> expect to keep releasing new 2.X versions? How long do you expect to
> still maintain 2.X releases?
>
> To provide a bit of context, the Apache Kafka project is considering
> switching to log4j2, but we're concerned that with log4j3, log4j2 will
> soon enter end of life.
>
> Also the website states log4j3 will require Java 11 [0] but looking at
> the latest published artifacts [1], it looks like it instead requires
> Java 17 instead. Apache Kafka still supports Java 11 so we can't
> directly adopt log4j3.
>
> Thanks,
> Mickael
>
> 0: https://logging.apache.org/log4j/3.x/#requirements
> 1: https://logging.apache.org/log4j/3.x/download.html
>
> -
> To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
> For additional commands, e-mail: log4j-user-h...@logging.apache.org
>
>


Support of log4j2

2024-01-10 Thread Mickael Maison
Hi,

I see that log4j3 is about to release, so I'm wondering what are the
plans regarding future development and maintenance of log4j2? Do you
expect to keep releasing new 2.X versions? How long do you expect to
still maintain 2.X releases?

To provide a bit of context, the Apache Kafka project is considering
switching to log4j2, but we're concerned that with log4j3, log4j2 will
soon enter end of life.

Also the website states log4j3 will require Java 11 [0] but looking at
the latest published artifacts [1], it looks like it instead requires
Java 17 instead. Apache Kafka still supports Java 11 so we can't
directly adopt log4j3.

Thanks,
Mickael

0: https://logging.apache.org/log4j/3.x/#requirements
1: https://logging.apache.org/log4j/3.x/download.html

-
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org



Re: Query about annotation support for log4j2

2017-09-13 Thread Matt Sicker
First off, please don't email developers directly. We're all subscribed to
the user list and answer questions here.

Secondly, no, that feature does not exist, though there is work being done
toward an audit log API for 2.10.

On 13 September 2017 at 01:42, Gaurav Deshpande 
wrote:

> Hi Matt/Ralph/Log4jusers,
>
>
>
> Is it possible to log events using annotations instead of log.info()
> statements?
>
>
>
> e.g.
>
>
>
> @Audit(=)
>
> Method body{
>
>
>
> }
>
>
>
> If yes then could you share documentation/how to make that possible?
>
>
>
> Thanks & Regards,
>
> *Gaurav Deshpande*|*Software Engineer*
>