You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@karaf.apache.org by Honey Goyal <er...@gmail.com> on 2015/01/31 09:44:19 UTC

Re: Were you guys still interested in adopting Log4j2 for your logging system?

Hi JB,

Where we are on karaf with log4j2 support? Any updates?
In which version of karaf we can expect log4j2 support?

Thanks,
Honey Goyal



--
View this message in context: http://karaf.922171.n3.nabble.com/Were-you-guys-still-interested-in-adopting-Log4j2-for-your-logging-system-tp4033296p4038161.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.

Re: Were you guys still interested in adopting Log4j2 for your logging system?

Posted by Honey Goyal <er...@gmail.com>.
We can have log4j2 at bundle level and pax maps it to log4j at karaf level
that i have implemented. But i doubt if log4j2 appender will work if we
configure it in org.ops4j.pax.logging.cfg.

Thanks,
Honey Goyal
On Feb 19, 2015 8:34 PM, "yogu13 [via Karaf]" <
ml-node+s922171n4038637h72@n3.nabble.com> wrote:

> Valid point!  Not sure log4j2 has this on its list as well.
>
> Regards,
> -Yogesh
>
> On Thursday, February 19, 2015, Guillaume Nodet-2 [via Karaf] <[hidden
> email] <http:///user/SendEmail.jtp?type=node&node=4038637&i=0>> wrote:
>
>> The main problem I see is that log4jv2 support is still not on par.  The
>> main problem is that the configuration does not support properties file,
>> so
>> that a bunch of things like going through configadmin using file install,
>> log:set commands, etc... would be broken.
>>
>> 2015-02-19 15:33 GMT+01:00 yogu13 <[hidden email]
>> <http:///user/SendEmail.jtp?type=node&node=4038635&i=0>>:
>>
>> > Hello Achim,
>> >
>> > Karaf supports / includes pax logging.. Pax logging has implemented the
>> > support for log4j2..IMO if karaf includes pax logging then it should be
>> > including the support for all implemented logging flavours and let user
>> > decide which implementation to use and not be selective.
>> >
>> > Regards,
>> > -Yogesh
>> >
>> > On Thursday, February 19, 2015, Achim Nierbeck [via Karaf] <
>> > [hidden email] <http:///user/SendEmail.jtp?type=node&node=4038635&i=1>>
>> wrote:
>> >
>> > > Hi,
>> > >
>> > > I can't remember that we decided to switch to log4j2 as service impl
>> for
>> > > the karaf logging so this is quite intentional.
>> > > If you rather have another logging available you'll need to change
>> that
>> > in
>> > > your custom distribution.
>> > >
>> > > regards, Achim
>> > >
>> > >
>> > > 2015-02-19 14:01 GMT+01:00 yogu13 <[hidden email]
>> > > <http:///user/SendEmail.jtp?type=node&node=4038632&i=0>>:
>> > >
>> > > > JB,
>> > > >
>> > > > Looks like karaf didnt include the pax-logging-log4j2 feature as
>> part
>> > of
>> > > > their asslembly. As part of the feature file I only see
>> > > >
>> > > >
>> > > >      <bundle start="true"
>> > > >
>> > > >
>> > >
>> >
>> start-level="8">mvn:org.ops4j.pax.logging/pax-logging-api/${pax.logging.version}</bundle>
>>
>> > >
>> > > >        <bundle start="true"
>> > > >
>> > > >
>> > >
>> >
>> start-level="8">mvn:org.ops4j.pax.logging/pax-logging-service/${pax.logging.version}</bundle>
>>
>> > >
>> > > >
>> > > > log4j2 and pax-logging-log4j2 bundles are missing.
>> > > >
>> > > > file being referred  -> [karaf.git] -> assemblies -> features ->
>> > > framework
>> > > > -> src -> main -> feature -> feature.xml
>> > > >
>> > > > Do we need to raise a JIRA for this?
>> > > >
>> > > > Let me know..
>> > > >
>> > > > Regards,
>> > > > -Yogesh
>> > > >
>> > > >
>> > > >
>> > > > --
>> > > > View this message in context:
>> > > >
>> > >
>> >
>> http://karaf.922171.n3.nabble.com/Were-you-guys-still-interested-in-adopting-Log4j2-for-your-logging-system-tp4033296p4038631.html
>> > > > Sent from the Karaf - Dev mailing list archive at Nabble.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
>> > >
>> > >
>> > > ------------------------------
>> > >  If you reply to this email, your message will be added to the
>> discussion
>> > > below:
>> > >
>> > >
>> >
>> http://karaf.922171.n3.nabble.com/Were-you-guys-still-interested-in-adopting-Log4j2-for-your-logging-system-tp4033296p4038632.html
>> > >  To unsubscribe from Were you guys still interested in adopting
>> Log4j2
>> > for
>> > > your logging system?, click here
>> > > <
>> > >
>> > > .
>> > > NAML
>> > > <
>> >
>> http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
>> > >
>> > >
>> >
>> >
>> >
>> >
>> > --
>> > View this message in context:
>> >
>> http://karaf.922171.n3.nabble.com/Were-you-guys-still-interested-in-adopting-Log4j2-for-your-logging-system-tp4033296p4038634.html
>> > Sent from the Karaf - Dev mailing list archive at Nabble.com.
>> >
>>
>>
>> ------------------------------
>>  If you reply to this email, your message will be added to the
>> discussion below:
>>
>> http://karaf.922171.n3.nabble.com/Were-you-guys-still-interested-in-adopting-Log4j2-for-your-logging-system-tp4033296p4038635.html
>>  To unsubscribe from Were you guys still interested in adopting Log4j2
>> for your logging system?, click here.
>> NAML
>> <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://karaf.922171.n3.nabble.com/Were-you-guys-still-interested-in-adopting-Log4j2-for-your-logging-system-tp4033296p4038637.html
>  To unsubscribe from Were you guys still interested in adopting Log4j2 for
> your logging system?, click here
> <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4033296&code=ZXIuaG9uZXkyMDEyQGdtYWlsLmNvbXw0MDMzMjk2fC0xOTIzNzA4OTQ=>
> .
> NAML
> <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: http://karaf.922171.n3.nabble.com/Were-you-guys-still-interested-in-adopting-Log4j2-for-your-logging-system-tp4033296p4038639.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.

Re: Were you guys still interested in adopting Log4j2 for your logging system?

Posted by yogu13 <yo...@gmail.com>.
Valid point!  Not sure log4j2 has this on its list as well.

Regards,
-Yogesh

On Thursday, February 19, 2015, Guillaume Nodet-2 [via Karaf] <
ml-node+s922171n4038635h30@n3.nabble.com> wrote:

> The main problem I see is that log4jv2 support is still not on par.  The
> main problem is that the configuration does not support properties file,
> so
> that a bunch of things like going through configadmin using file install,
> log:set commands, etc... would be broken.
>
> 2015-02-19 15:33 GMT+01:00 yogu13 <[hidden email]
> <http:///user/SendEmail.jtp?type=node&node=4038635&i=0>>:
>
> > Hello Achim,
> >
> > Karaf supports / includes pax logging.. Pax logging has implemented the
> > support for log4j2..IMO if karaf includes pax logging then it should be
> > including the support for all implemented logging flavours and let user
> > decide which implementation to use and not be selective.
> >
> > Regards,
> > -Yogesh
> >
> > On Thursday, February 19, 2015, Achim Nierbeck [via Karaf] <
> > [hidden email] <http:///user/SendEmail.jtp?type=node&node=4038635&i=1>>
> wrote:
> >
> > > Hi,
> > >
> > > I can't remember that we decided to switch to log4j2 as service impl
> for
> > > the karaf logging so this is quite intentional.
> > > If you rather have another logging available you'll need to change
> that
> > in
> > > your custom distribution.
> > >
> > > regards, Achim
> > >
> > >
> > > 2015-02-19 14:01 GMT+01:00 yogu13 <[hidden email]
> > > <http:///user/SendEmail.jtp?type=node&node=4038632&i=0>>:
> > >
> > > > JB,
> > > >
> > > > Looks like karaf didnt include the pax-logging-log4j2 feature as
> part
> > of
> > > > their asslembly. As part of the feature file I only see
> > > >
> > > >
> > > >      <bundle start="true"
> > > >
> > > >
> > >
> >
> start-level="8">mvn:org.ops4j.pax.logging/pax-logging-api/${pax.logging.version}</bundle>
>
> > >
> > > >        <bundle start="true"
> > > >
> > > >
> > >
> >
> start-level="8">mvn:org.ops4j.pax.logging/pax-logging-service/${pax.logging.version}</bundle>
>
> > >
> > > >
> > > > log4j2 and pax-logging-log4j2 bundles are missing.
> > > >
> > > > file being referred  -> [karaf.git] -> assemblies -> features ->
> > > framework
> > > > -> src -> main -> feature -> feature.xml
> > > >
> > > > Do we need to raise a JIRA for this?
> > > >
> > > > Let me know..
> > > >
> > > > Regards,
> > > > -Yogesh
> > > >
> > > >
> > > >
> > > > --
> > > > View this message in context:
> > > >
> > >
> >
> http://karaf.922171.n3.nabble.com/Were-you-guys-still-interested-in-adopting-Log4j2-for-your-logging-system-tp4033296p4038631.html
> > > > Sent from the Karaf - Dev mailing list archive at Nabble.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
> > >
> > >
> > > ------------------------------
> > >  If you reply to this email, your message will be added to the
> discussion
> > > below:
> > >
> > >
> >
> http://karaf.922171.n3.nabble.com/Were-you-guys-still-interested-in-adopting-Log4j2-for-your-logging-system-tp4033296p4038632.html
> > >  To unsubscribe from Were you guys still interested in adopting Log4j2
> > for
> > > your logging system?, click here
> > > <
> > >
> > > .
> > > NAML
> > > <
> >
> http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
> > >
> > >
> >
> >
> >
> >
> > --
> > View this message in context:
> >
> http://karaf.922171.n3.nabble.com/Were-you-guys-still-interested-in-adopting-Log4j2-for-your-logging-system-tp4033296p4038634.html
> > Sent from the Karaf - Dev mailing list archive at Nabble.com.
> >
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://karaf.922171.n3.nabble.com/Were-you-guys-still-interested-in-adopting-Log4j2-for-your-logging-system-tp4033296p4038635.html
>  To unsubscribe from Were you guys still interested in adopting Log4j2 for
> your logging system?, click here
> <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4033296&code=eW9ndTEzQGdtYWlsLmNvbXw0MDMzMjk2fC04ODQzODQxMjM=>
> .
> NAML
> <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: http://karaf.922171.n3.nabble.com/Were-you-guys-still-interested-in-adopting-Log4j2-for-your-logging-system-tp4033296p4038637.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.

Re: Were you guys still interested in adopting Log4j2 for your logging system?

Posted by Achim Nierbeck <bc...@googlemail.com>.
Exactly, that's why I don't think we will use the log4j2 logging service
any time soon.
The API, I need to check that, but afaik that should already be included.

regards, Achim


2015-02-19 15:50 GMT+01:00 Guillaume Nodet <gn...@apache.org>:

> The main problem I see is that log4jv2 support is still not on par.  The
> main problem is that the configuration does not support properties file, so
> that a bunch of things like going through configadmin using file install,
> log:set commands, etc... would be broken.
>
> 2015-02-19 15:33 GMT+01:00 yogu13 <yo...@gmail.com>:
>
> > Hello Achim,
> >
> > Karaf supports / includes pax logging.. Pax logging has implemented the
> > support for log4j2..IMO if karaf includes pax logging then it should be
> > including the support for all implemented logging flavours and let user
> > decide which implementation to use and not be selective.
> >
> > Regards,
> > -Yogesh
> >
> > On Thursday, February 19, 2015, Achim Nierbeck [via Karaf] <
> > ml-node+s922171n4038632h37@n3.nabble.com> wrote:
> >
> > > Hi,
> > >
> > > I can't remember that we decided to switch to log4j2 as service impl
> for
> > > the karaf logging so this is quite intentional.
> > > If you rather have another logging available you'll need to change that
> > in
> > > your custom distribution.
> > >
> > > regards, Achim
> > >
> > >
> > > 2015-02-19 14:01 GMT+01:00 yogu13 <[hidden email]
> > > <http:///user/SendEmail.jtp?type=node&node=4038632&i=0>>:
> > >
> > > > JB,
> > > >
> > > > Looks like karaf didnt include the pax-logging-log4j2 feature as part
> > of
> > > > their asslembly. As part of the feature file I only see
> > > >
> > > >
> > > >      <bundle start="true"
> > > >
> > > >
> > >
> >
> start-level="8">mvn:org.ops4j.pax.logging/pax-logging-api/${pax.logging.version}</bundle>
> > >
> > > >        <bundle start="true"
> > > >
> > > >
> > >
> >
> start-level="8">mvn:org.ops4j.pax.logging/pax-logging-service/${pax.logging.version}</bundle>
> > >
> > > >
> > > > log4j2 and pax-logging-log4j2 bundles are missing.
> > > >
> > > > file being referred  -> [karaf.git] -> assemblies -> features ->
> > > framework
> > > > -> src -> main -> feature -> feature.xml
> > > >
> > > > Do we need to raise a JIRA for this?
> > > >
> > > > Let me know..
> > > >
> > > > Regards,
> > > > -Yogesh
> > > >
> > > >
> > > >
> > > > --
> > > > View this message in context:
> > > >
> > >
> >
> http://karaf.922171.n3.nabble.com/Were-you-guys-still-interested-in-adopting-Log4j2-for-your-logging-system-tp4033296p4038631.html
> > > > Sent from the Karaf - Dev mailing list archive at Nabble.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
> > >
> > >
> > > ------------------------------
> > >  If you reply to this email, your message will be added to the
> discussion
> > > below:
> > >
> > >
> >
> http://karaf.922171.n3.nabble.com/Were-you-guys-still-interested-in-adopting-Log4j2-for-your-logging-system-tp4033296p4038632.html
> > >  To unsubscribe from Were you guys still interested in adopting Log4j2
> > for
> > > your logging system?, click here
> > > <
> >
> http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4033296&code=eW9ndTEzQGdtYWlsLmNvbXw0MDMzMjk2fC04ODQzODQxMjM=
> > >
> > > .
> > > NAML
> > > <
> >
> http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
> > >
> > >
> >
> >
> >
> >
> > --
> > View this message in context:
> >
> http://karaf.922171.n3.nabble.com/Were-you-guys-still-interested-in-adopting-Log4j2-for-your-logging-system-tp4033296p4038634.html
> > Sent from the Karaf - Dev mailing list archive at Nabble.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

Re: Were you guys still interested in adopting Log4j2 for your logging system?

Posted by Guillaume Nodet <gn...@apache.org>.
The main problem I see is that log4jv2 support is still not on par.  The
main problem is that the configuration does not support properties file, so
that a bunch of things like going through configadmin using file install,
log:set commands, etc... would be broken.

2015-02-19 15:33 GMT+01:00 yogu13 <yo...@gmail.com>:

> Hello Achim,
>
> Karaf supports / includes pax logging.. Pax logging has implemented the
> support for log4j2..IMO if karaf includes pax logging then it should be
> including the support for all implemented logging flavours and let user
> decide which implementation to use and not be selective.
>
> Regards,
> -Yogesh
>
> On Thursday, February 19, 2015, Achim Nierbeck [via Karaf] <
> ml-node+s922171n4038632h37@n3.nabble.com> wrote:
>
> > Hi,
> >
> > I can't remember that we decided to switch to log4j2 as service impl for
> > the karaf logging so this is quite intentional.
> > If you rather have another logging available you'll need to change that
> in
> > your custom distribution.
> >
> > regards, Achim
> >
> >
> > 2015-02-19 14:01 GMT+01:00 yogu13 <[hidden email]
> > <http:///user/SendEmail.jtp?type=node&node=4038632&i=0>>:
> >
> > > JB,
> > >
> > > Looks like karaf didnt include the pax-logging-log4j2 feature as part
> of
> > > their asslembly. As part of the feature file I only see
> > >
> > >
> > >      <bundle start="true"
> > >
> > >
> >
> start-level="8">mvn:org.ops4j.pax.logging/pax-logging-api/${pax.logging.version}</bundle>
> >
> > >        <bundle start="true"
> > >
> > >
> >
> start-level="8">mvn:org.ops4j.pax.logging/pax-logging-service/${pax.logging.version}</bundle>
> >
> > >
> > > log4j2 and pax-logging-log4j2 bundles are missing.
> > >
> > > file being referred  -> [karaf.git] -> assemblies -> features ->
> > framework
> > > -> src -> main -> feature -> feature.xml
> > >
> > > Do we need to raise a JIRA for this?
> > >
> > > Let me know..
> > >
> > > Regards,
> > > -Yogesh
> > >
> > >
> > >
> > > --
> > > View this message in context:
> > >
> >
> http://karaf.922171.n3.nabble.com/Were-you-guys-still-interested-in-adopting-Log4j2-for-your-logging-system-tp4033296p4038631.html
> > > Sent from the Karaf - Dev mailing list archive at Nabble.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
> >
> >
> > ------------------------------
> >  If you reply to this email, your message will be added to the discussion
> > below:
> >
> >
> http://karaf.922171.n3.nabble.com/Were-you-guys-still-interested-in-adopting-Log4j2-for-your-logging-system-tp4033296p4038632.html
> >  To unsubscribe from Were you guys still interested in adopting Log4j2
> for
> > your logging system?, click here
> > <
> http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4033296&code=eW9ndTEzQGdtYWlsLmNvbXw0MDMzMjk2fC04ODQzODQxMjM=
> >
> > .
> > NAML
> > <
> http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
> >
> >
>
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/Were-you-guys-still-interested-in-adopting-Log4j2-for-your-logging-system-tp4033296p4038634.html
> Sent from the Karaf - Dev mailing list archive at Nabble.com.
>

Re: Were you guys still interested in adopting Log4j2 for your logging system?

Posted by yogu13 <yo...@gmail.com>.
Hello Achim,

Karaf supports / includes pax logging.. Pax logging has implemented the
support for log4j2..IMO if karaf includes pax logging then it should be
including the support for all implemented logging flavours and let user
decide which implementation to use and not be selective.

Regards,
-Yogesh

On Thursday, February 19, 2015, Achim Nierbeck [via Karaf] <
ml-node+s922171n4038632h37@n3.nabble.com> wrote:

> Hi,
>
> I can't remember that we decided to switch to log4j2 as service impl for
> the karaf logging so this is quite intentional.
> If you rather have another logging available you'll need to change that in
> your custom distribution.
>
> regards, Achim
>
>
> 2015-02-19 14:01 GMT+01:00 yogu13 <[hidden email]
> <http:///user/SendEmail.jtp?type=node&node=4038632&i=0>>:
>
> > JB,
> >
> > Looks like karaf didnt include the pax-logging-log4j2 feature as part of
> > their asslembly. As part of the feature file I only see
> >
> >
> >      <bundle start="true"
> >
> >
> start-level="8">mvn:org.ops4j.pax.logging/pax-logging-api/${pax.logging.version}</bundle>
>
> >        <bundle start="true"
> >
> >
> start-level="8">mvn:org.ops4j.pax.logging/pax-logging-service/${pax.logging.version}</bundle>
>
> >
> > log4j2 and pax-logging-log4j2 bundles are missing.
> >
> > file being referred  -> [karaf.git] -> assemblies -> features ->
> framework
> > -> src -> main -> feature -> feature.xml
> >
> > Do we need to raise a JIRA for this?
> >
> > Let me know..
> >
> > Regards,
> > -Yogesh
> >
> >
> >
> > --
> > View this message in context:
> >
> http://karaf.922171.n3.nabble.com/Were-you-guys-still-interested-in-adopting-Log4j2-for-your-logging-system-tp4033296p4038631.html
> > Sent from the Karaf - Dev mailing list archive at Nabble.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
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://karaf.922171.n3.nabble.com/Were-you-guys-still-interested-in-adopting-Log4j2-for-your-logging-system-tp4033296p4038632.html
>  To unsubscribe from Were you guys still interested in adopting Log4j2 for
> your logging system?, click here
> <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4033296&code=eW9ndTEzQGdtYWlsLmNvbXw0MDMzMjk2fC04ODQzODQxMjM=>
> .
> NAML
> <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: http://karaf.922171.n3.nabble.com/Were-you-guys-still-interested-in-adopting-Log4j2-for-your-logging-system-tp4033296p4038634.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.

Re: Were you guys still interested in adopting Log4j2 for your logging system?

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

I can't remember that we decided to switch to log4j2 as service impl for
the karaf logging so this is quite intentional.
If you rather have another logging available you'll need to change that in
your custom distribution.

regards, Achim


2015-02-19 14:01 GMT+01:00 yogu13 <yo...@gmail.com>:

> JB,
>
> Looks like karaf didnt include the pax-logging-log4j2 feature as part of
> their asslembly. As part of the feature file I only see
>
>
>      <bundle start="true"
>
> start-level="8">mvn:org.ops4j.pax.logging/pax-logging-api/${pax.logging.version}</bundle>
>        <bundle start="true"
>
> start-level="8">mvn:org.ops4j.pax.logging/pax-logging-service/${pax.logging.version}</bundle>
>
> log4j2 and pax-logging-log4j2 bundles are missing.
>
> file being referred  -> [karaf.git] -> assemblies -> features -> framework
> -> src -> main -> feature -> feature.xml
>
> Do we need to raise a JIRA for this?
>
> Let me know..
>
> Regards,
> -Yogesh
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/Were-you-guys-still-interested-in-adopting-Log4j2-for-your-logging-system-tp4033296p4038631.html
> Sent from the Karaf - Dev mailing list archive at Nabble.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

Re: Were you guys still interested in adopting Log4j2 for your logging system?

Posted by yogu13 <yo...@gmail.com>.
JB,

Looks like karaf didnt include the pax-logging-log4j2 feature as part of
their asslembly. As part of the feature file I only see

 
     <bundle start="true"
start-level="8">mvn:org.ops4j.pax.logging/pax-logging-api/${pax.logging.version}</bundle>
       <bundle start="true"
start-level="8">mvn:org.ops4j.pax.logging/pax-logging-service/${pax.logging.version}</bundle>

log4j2 and pax-logging-log4j2 bundles are missing.

file being referred  -> [karaf.git] -> assemblies -> features -> framework
-> src -> main -> feature -> feature.xml

Do we need to raise a JIRA for this?

Let me know..

Regards,
-Yogesh



--
View this message in context: http://karaf.922171.n3.nabble.com/Were-you-guys-still-interested-in-adopting-Log4j2-for-your-logging-system-tp4033296p4038631.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.

Re: Were you guys still interested in adopting Log4j2 for your logging system?

Posted by Honey Goyal <er...@gmail.com>.
JB, LogManager comes with pax-logging-service in org.apache.log4j.* package
which was for log4j1. If you check pax-logging-log4j bundle, LogManager
comes with this jar in org.apache.logging.log4j.* package.

I also tried to install pax-logging-log4j bundle as system
bundle(startup.properties). But bad luck 



--
View this message in context: http://karaf.922171.n3.nabble.com/Were-you-guys-still-interested-in-adopting-Log4j2-for-your-logging-system-tp4033296p4038327.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.

Re: Were you guys still interested in adopting Log4j2 for your logging system?

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi

The LogManager should come with pax-logging-service. Let me check if 
it's included.
Normally, you should use directly a logger.

Regards
JB

On 02/02/2015 08:57 AM, Honey Goyal wrote:
> Thank You JB. I downloaded karaf 3.0.3, first i tried to print a log using
> log4j2 LogManager.getLogger().
>
>
> First i got error Unable to resolve 112.0: missing requirement [112.0]
> osgi.wiring.package;
> (&(osgi.wiring.package=org.apache.logging.log4j)(version>=2.1.0)(!(version>=3.0.‌​0))).
> I think we dont need to install log4j-api and log4-core bundles manually as
> karaf should provide these bundles.
>
> Then i resolved this error by manually installing log4j-core(Version 2.1)
> and log4j-api(Version 2.1) bundles in karaf.
>
>
> After that I got error ERROR StatusLogger Log4j2 could not find a logging
> implementation. Please add log4j-core to the classpath. Using SimpleLogger
> to log to the console.  https://issues.apache.org/jira/browse/LOG4J2-373
> <https://issues.apache.org/jira/browse/LOG4J2-373>   This seems a bug. But i
> am using 2.1 version of log4j.
>
> The log4j-core uses the bootstrap-classloader and the log4j-api uses the
> bundle-classloader.
>
> Workaround needed.
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/Were-you-guys-still-interested-in-adopting-Log4j2-for-your-logging-system-tp4033296p4038190.html
> Sent from the Karaf - Dev mailing list archive at Nabble.com.
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: Were you guys still interested in adopting Log4j2 for your logging system?

Posted by Honey Goyal <er...@gmail.com>.
Thank You JB. I downloaded karaf 3.0.3, first i tried to print a log using
log4j2 LogManager.getLogger(). 


First i got error Unable to resolve 112.0: missing requirement [112.0]
osgi.wiring.package;
(&(osgi.wiring.package=org.apache.logging.log4j)(version>=2.1.0)(!(version>=3.0.‌​0))).
I think we dont need to install log4j-api and log4-core bundles manually as
karaf should provide these bundles. 

Then i resolved this error by manually installing log4j-core(Version 2.1)
and log4j-api(Version 2.1) bundles in karaf.


After that I got error ERROR StatusLogger Log4j2 could not find a logging
implementation. Please add log4j-core to the classpath. Using SimpleLogger
to log to the console.  https://issues.apache.org/jira/browse/LOG4J2-373
<https://issues.apache.org/jira/browse/LOG4J2-373>   This seems a bug. But i
am using 2.1 version of log4j.

The log4j-core uses the bootstrap-classloader and the log4j-api uses the
bundle-classloader.

Workaround needed.



--
View this message in context: http://karaf.922171.n3.nabble.com/Were-you-guys-still-interested-in-adopting-Log4j2-for-your-logging-system-tp4033296p4038190.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.

Re: Were you guys still interested in adopting Log4j2 for your logging system?

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Honey,

It's done (Pax Logging 1.8.x) and included in Karaf 3.0.3.

Regards
JB

On 01/31/2015 09:44 AM, Honey Goyal wrote:
> Hi JB,
>
> Where we are on karaf with log4j2 support? Any updates?
> In which version of karaf we can expect log4j2 support?
>
> Thanks,
> Honey Goyal
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/Were-you-guys-still-interested-in-adopting-Log4j2-for-your-logging-system-tp4033296p4038161.html
> Sent from the Karaf - Dev mailing list archive at Nabble.com.
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com