You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@karaf.apache.org by Matt Sicker <bo...@gmail.com> on 2016/08/10 13:51:24 UTC

Log4j 1.x will not work in Java 9, need to migrate to 2.x

Hello guys, I noticed in Karaf 4.0.5, Log4j 1.x is still being used as the
logging framework. This is no longer supported in Java 9 due to being end
of life and a bug involving the JDK version number string having changed
format significantly.

Are there plans to make Log4j 2.x the default in Karaf 4.1 or 5.0? If not,
I can help you guys migrate. We're keeping track of migration efforts in
this issue: https://issues.apache.org/jira/browse/LOG4J2-1473

-- 
Matt Sicker <bo...@gmail.com>

Re: Log4j 1.x will not work in Java 9, need to migrate to 2.x

Posted by Matt Sicker <bo...@gmail.com>.
I mean old config files written for log4j should work in log4j2. Log4j 2
already has a properties file syntax, but it's different from the old 1.x
format.

On 25 September 2016 at 12:31, Guillaume Nodet <gn...@apache.org> wrote:

> Fwiw, pax-logging-log4j2 is the backend for Karaf 4.1.
> And we already support log4j configuration style
> (though prepended with log4j2 instead of log4j).
>
> 2016-09-25 17:32 GMT+02:00 Matt Sicker <bo...@gmail.com>:
>
> > As a quick followup, we're working on supporting log4j 1.x configuration
> > files in 2.x lately, so eventually we should be able to switch the
> default
> > backend (or at least the default used in Karaf 4.1).
> >
> > On 11 August 2016 at 09:29, Achim Nierbeck <bc...@googlemail.com>
> > wrote:
> >
> > > Hi Matt,
> > >
> > > we're not directly using Log4j 1.x it's used by Pax-Logging which
> itself
> > > brings along a lot of needed stuff.
> > > So to fullfill what you are requesting we would need to replace
> > Pax-Logging
> > > by Log4j2 and therefore require a lot
> > > of changes to stuff that has been working with Pax-Logging as
> Pax-Logging
> > > provides all kinds of APIs with only one implementation which is log4j
> 1
> > > right now. But you can also use log4j 2 as alternate backend.
> > >
> > > regards, Achim
> > >
> > >
> > > 2016-08-10 15:51 GMT+02:00 Matt Sicker <bo...@gmail.com>:
> > >
> > > > Hello guys, I noticed in Karaf 4.0.5, Log4j 1.x is still being used
> as
> > > the
> > > > logging framework. This is no longer supported in Java 9 due to being
> > end
> > > > of life and a bug involving the JDK version number string having
> > changed
> > > > format significantly.
> > > >
> > > > Are there plans to make Log4j 2.x the default in Karaf 4.1 or 5.0? If
> > > not,
> > > > I can help you guys migrate. We're keeping track of migration efforts
> > in
> > > > this issue: https://issues.apache.org/jira/browse/LOG4J2-1473
> > > >
> > > > --
> > > > Matt Sicker <bo...@gmail.com>
> > > >
> > >
> > >
> > >
> > > --
> > >
> > > Apache Member
> > > Apache Karaf <http://karaf.apache.org/> Committer & PMC
> > > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> Committer
> > &
> > > Project Lead
> > > blog <http://notizblog.nierbeck.de/>
> > > Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
> > >
> > > Software Architect / Project Manager / Scrum Master
> > >
> >
> >
> >
> > --
> > Matt Sicker <bo...@gmail.com>
> >
>
>
>
> --
> ------------------------
> Guillaume Nodet
> ------------------------
> Red Hat, Open Source Integration
>
> Email: gnodet@redhat.com
> Web: http://fusesource.com
> Blog: http://gnodet.blogspot.com/
>



-- 
Matt Sicker <bo...@gmail.com>

Re: Log4j 1.x will not work in Java 9, need to migrate to 2.x

Posted by Guillaume Nodet <gn...@apache.org>.
Fwiw, pax-logging-log4j2 is the backend for Karaf 4.1.
And we already support log4j configuration style
(though prepended with log4j2 instead of log4j).

2016-09-25 17:32 GMT+02:00 Matt Sicker <bo...@gmail.com>:

> As a quick followup, we're working on supporting log4j 1.x configuration
> files in 2.x lately, so eventually we should be able to switch the default
> backend (or at least the default used in Karaf 4.1).
>
> On 11 August 2016 at 09:29, Achim Nierbeck <bc...@googlemail.com>
> wrote:
>
> > Hi Matt,
> >
> > we're not directly using Log4j 1.x it's used by Pax-Logging which itself
> > brings along a lot of needed stuff.
> > So to fullfill what you are requesting we would need to replace
> Pax-Logging
> > by Log4j2 and therefore require a lot
> > of changes to stuff that has been working with Pax-Logging as Pax-Logging
> > provides all kinds of APIs with only one implementation which is log4j 1
> > right now. But you can also use log4j 2 as alternate backend.
> >
> > regards, Achim
> >
> >
> > 2016-08-10 15:51 GMT+02:00 Matt Sicker <bo...@gmail.com>:
> >
> > > Hello guys, I noticed in Karaf 4.0.5, Log4j 1.x is still being used as
> > the
> > > logging framework. This is no longer supported in Java 9 due to being
> end
> > > of life and a bug involving the JDK version number string having
> changed
> > > format significantly.
> > >
> > > Are there plans to make Log4j 2.x the default in Karaf 4.1 or 5.0? If
> > not,
> > > I can help you guys migrate. We're keeping track of migration efforts
> in
> > > this issue: https://issues.apache.org/jira/browse/LOG4J2-1473
> > >
> > > --
> > > Matt Sicker <bo...@gmail.com>
> > >
> >
> >
> >
> > --
> >
> > Apache Member
> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer
> &
> > Project Lead
> > blog <http://notizblog.nierbeck.de/>
> > Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
> >
> > Software Architect / Project Manager / Scrum Master
> >
>
>
>
> --
> Matt Sicker <bo...@gmail.com>
>



-- 
------------------------
Guillaume Nodet
------------------------
Red Hat, Open Source Integration

Email: gnodet@redhat.com
Web: http://fusesource.com
Blog: http://gnodet.blogspot.com/

Re: Log4j 1.x will not work in Java 9, need to migrate to 2.x

Posted by Matt Sicker <bo...@gmail.com>.
As a quick followup, we're working on supporting log4j 1.x configuration
files in 2.x lately, so eventually we should be able to switch the default
backend (or at least the default used in Karaf 4.1).

On 11 August 2016 at 09:29, Achim Nierbeck <bc...@googlemail.com> wrote:

> Hi Matt,
>
> we're not directly using Log4j 1.x it's used by Pax-Logging which itself
> brings along a lot of needed stuff.
> So to fullfill what you are requesting we would need to replace Pax-Logging
> by Log4j2 and therefore require a lot
> of changes to stuff that has been working with Pax-Logging as Pax-Logging
> provides all kinds of APIs with only one implementation which is log4j 1
> right now. But you can also use log4j 2 as alternate backend.
>
> regards, Achim
>
>
> 2016-08-10 15:51 GMT+02:00 Matt Sicker <bo...@gmail.com>:
>
> > Hello guys, I noticed in Karaf 4.0.5, Log4j 1.x is still being used as
> the
> > logging framework. This is no longer supported in Java 9 due to being end
> > of life and a bug involving the JDK version number string having changed
> > format significantly.
> >
> > Are there plans to make Log4j 2.x the default in Karaf 4.1 or 5.0? If
> not,
> > I can help you guys migrate. We're keeping track of migration efforts in
> > this issue: https://issues.apache.org/jira/browse/LOG4J2-1473
> >
> > --
> > Matt Sicker <bo...@gmail.com>
> >
>
>
>
> --
>
> Apache Member
> Apache Karaf <http://karaf.apache.org/> Committer & PMC
> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
> Project Lead
> blog <http://notizblog.nierbeck.de/>
> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>
> Software Architect / Project Manager / Scrum Master
>



-- 
Matt Sicker <bo...@gmail.com>

Re: Log4j 1.x will not work in Java 9, need to migrate to 2.x

Posted by Achim Nierbeck <bc...@googlemail.com>.
Hi Matt,

we're not directly using Log4j 1.x it's used by Pax-Logging which itself
brings along a lot of needed stuff.
So to fullfill what you are requesting we would need to replace Pax-Logging
by Log4j2 and therefore require a lot
of changes to stuff that has been working with Pax-Logging as Pax-Logging
provides all kinds of APIs with only one implementation which is log4j 1
right now. But you can also use log4j 2 as alternate backend.

regards, Achim


2016-08-10 15:51 GMT+02:00 Matt Sicker <bo...@gmail.com>:

> Hello guys, I noticed in Karaf 4.0.5, Log4j 1.x is still being used as the
> logging framework. This is no longer supported in Java 9 due to being end
> of life and a bug involving the JDK version number string having changed
> format significantly.
>
> Are there plans to make Log4j 2.x the default in Karaf 4.1 or 5.0? If not,
> I can help you guys migrate. We're keeping track of migration efforts in
> this issue: https://issues.apache.org/jira/browse/LOG4J2-1473
>
> --
> Matt Sicker <bo...@gmail.com>
>



-- 

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>

Software Architect / Project Manager / Scrum Master