In the same area:

http://blog.nanthrax.net/2012/12/create-custom-log4j-appender-for-karaf-and-pax-logging/

Regards
JB

On 09/17/2013 03:29 PM, Achim Nierbeck wrote:
Hi there,

the pax-logging doesn't export all required Classes cause some of them
are more of an "internal" way.
this is the same for Appenders, if you need to use the Layout Class or
want to add your personal Layout class
you need to do the same as for appenders. [1]

regards, Achim

[1] -
http://notizblog.nierbeck.de/2011/08/adding-custom-log-appender-to-pax-logging/


2013/9/17 Jean-Baptiste Onofré <[email protected] <mailto:[email protected]>>

    Hi JP,

    Karaf 2.3.x also uses Pax Logging 1.7.0 (I released Pax Logging
    1.7.1 yesterday, and it's used by next Karaf 2.3.3).

    Let me check in Pax Logging (and I will create a Jira if I see an
    issue).

    Regards
    JB


    On 09/17/2013 02:32 PM, CLEMENT Jean-Philippe wrote:

        After investigation Karaf 3 uses Pax Logging 1.7.0 which uses Log4J
        1.2.16. I checked Log4J 1.2.16 and it includes Layout.

        I don’t know how Pax Logging works, but there is no Layout in the
        org.apache.log4j package. Is it the problem – how to fix?

        Regards,

        JP

        Regards,

        Jean-Philippe

        [@@ OPEN @@]

        *De :*[email protected] <mailto:[email protected]>
        [mailto:[email protected] <mailto:[email protected]>]
        *Envoyé :* mardi 17 septembre 2013 10:23
        *À :* [email protected] <mailto:[email protected]>;
        [email protected] <mailto:[email protected]>
        *Objet :* Re: org.apache.log4j.Layout missing


        Let me check if it's not in pax logging service.

        Regards
        JB

        --
        Jean-Baptiste Onofré
        [email protected] <mailto:[email protected]>
        <mailto:[email protected] <mailto:[email protected]>>

        http://blog.nanthrax.net
        Talend - http://www.talend.com

        ----- Reply message -----
        From: "CLEMENT Jean-Philippe"
        <jean-philippe.clement@fr.__thalesgroup.com
        <mailto:[email protected]>
        <mailto:jean-philippe.clement@__fr.thalesgroup.com
        <mailto:[email protected]>>>
        To: "[email protected] <mailto:[email protected]>
        <mailto:[email protected] <mailto:[email protected]>>__"
        <[email protected] <mailto:[email protected]>
        <mailto:[email protected] <mailto:[email protected]>>__>
        Subject: org.apache.log4j.Layout missing
        Date: Tue, Sep 17, 2013 9:02 am


        Dear Karaf experts,

        The Log4J Layout class seems not to be available:
        Caused by: java.lang.__ClassNotFoundException:
        org.apache.log4j.Layout not
        found by org.ops4j.pax.logging.pax-__logging-api [24]
        ...

        I there a way to update the Log4J api, keeping the PAX Logging
        compatibility?

        Regards,
        Jean-Philippe Clément

        [@@ OPEN @@]


    --
    Jean-Baptiste Onofré
    [email protected] <mailto:[email protected]>
    http://blog.nanthrax.net
    Talend - http://www.talend.com




--

Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer
& Project Lead
OPS4J Pax for Vaadin <http://team.ops4j.org/wiki/display/PAXVAADIN/Home>
Commiter & Project Lead
blog <http://notizblog.nierbeck.de/>

--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to