You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by nino martinez wael <ni...@gmail.com> on 2017/05/01 11:27:00 UTC

Re: going from karaf 4.0.9 to 4.1.1 broken logging

nice :)

On Wed, Apr 26, 2017 at 3:37 PM, Achim Nierbeck <bc...@googlemail.com>
wrote:

> Hi,
>
> yeah I've already filed a bug for that in pax exam.
> I think this is due to the fact that Karaf 4.1.x uses the log4j2 backend
> instead of the log4j backend it previously used.
>
> regards, Achim
>
> [1] - https://ops4j1.jira.com/browse/PAXEXAM-815
>
> 2017-04-26 15:27 GMT+02:00 nino martinez wael <
> nino.martinez.wael@gmail.com>:
>
>> Sorry for the weird subject.. In my pax exam tests I no longer have
>> logging when going from 4.0.9 to 4.1.1
>>
>> karafDistributionConfiguration().frameworkUrl(maven().groupId("org.apache.karaf").artifactId("apache-karaf")
>>         .type("zip").version("4.0.9"))
>>         .unpackDirectory(new File("target/paxexam/unpack/"))
>> ,CoreOptions.systemTimeout(360000),
>> configureConsole().ignoreLocalConsole(),
>> logLevel(LogLevel.DEBUG),
>>
>>
>> something seems off..
>>
>>
>>
>> --
>> Best regards / Med venlig hilsen
>> Nino Martinez
>>
>
>
>
> --
>
> 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
>
>


-- 
Best regards / Med venlig hilsen
Nino Martinez

RE: going from karaf 4.0.9 to 4.1.1 broken logging

Posted by Arunan Balasubramaniam <ar...@interlinksoftware.com>.

  Hi,

  I had a poke at this and have got as far as https://github.com/NetNow/org.ops4j.pax.exam2/tree/configure-karaf-logging-by-backend which will work if your log4j2 is configured using properties within the file etc/org.ops4j.pax.logging.cfg rather than in a different file referenced from it. It’s not ideal but it’s equal to the previous log4j situation.

  Cheers,
  Arunan



From: nino martinez wael [mailto:nino.martinez.wael@gmail.com]
Sent: 01 May 2017 12:27
To: user@karaf.apache.org
Subject: Re: going from karaf 4.0.9 to 4.1.1 broken logging

nice :)

On Wed, Apr 26, 2017 at 3:37 PM, Achim Nierbeck <bc...@googlemail.com>> wrote:
Hi,

yeah I've already filed a bug for that in pax exam.
I think this is due to the fact that Karaf 4.1.x uses the log4j2 backend instead of the log4j backend it previously used.

regards, Achim

[1] - https://ops4j1.jira.com/browse/PAXEXAM-815

2017-04-26 15:27 GMT+02:00 nino martinez wael <ni...@gmail.com>>:
Sorry for the weird subject.. In my pax exam tests I no longer have logging when going from 4.0.9 to 4.1.1


karafDistributionConfiguration().frameworkUrl(maven().groupId("org.apache.karaf").artifactId("apache-karaf")
        .type("zip").version("4.0.9"))
        .unpackDirectory(new File("target/paxexam/unpack/"))
,CoreOptions.systemTimeout(360000),
configureConsole().ignoreLocalConsole(),
logLevel(LogLevel.DEBUG),



something seems off..


--
Best regards / Med venlig hilsen
Nino Martinez



--

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




--
Best regards / Med venlig hilsen
Nino Martinez