Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id BA32B200BB0 for ; Sun, 16 Oct 2016 07:19:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B8B5C160AF4; Sun, 16 Oct 2016 05:19:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id D9B34160AF1 for ; Sun, 16 Oct 2016 07:19:21 +0200 (CEST) Received: (qmail 68531 invoked by uid 500); 16 Oct 2016 05:19:21 -0000 Mailing-List: contact issues-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list issues@karaf.apache.org Received: (qmail 68516 invoked by uid 99); 16 Oct 2016 05:19:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Oct 2016 05:19:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 760F32C4C71 for ; Sun, 16 Oct 2016 05:19:20 +0000 (UTC) Date: Sun, 16 Oct 2016 05:19:20 +0000 (UTC) From: =?utf-8?Q?Jean-Baptiste_Onofr=C3=A9_=28JIRA=29?= To: issues@karaf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (KARAF-4772) Karaf ignores log4j2 config MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sun, 16 Oct 2016 05:19:22 -0000 [ https://issues.apache.org/jira/browse/KARAF-4772?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1557= 9362#comment-15579362 ]=20 Jean-Baptiste Onofr=C3=A9 commented on KARAF-4772: --------------------------------------------- Did you install pax-logging-log4j2 bundle ? > Karaf ignores log4j2 config > --------------------------- > > Key: KARAF-4772 > URL: https://issues.apache.org/jira/browse/KARAF-4772 > Project: Karaf > Issue Type: Bug > Affects Versions: 4.0.4, 4.0.5, 4.0.6, 4.0.7 > Reporter: Anatoliy Balakirev > > I'm trying to switch my project to log4j2 and karaf seems to be just igno= ring my config: I see some my messages (WARN level and higher) are logged t= o console only. > Log4j2 configuration itself looks ok. When I initially made some mistake = there (left old appender from log4j1) - got following error: > {noformat} > 2016-10-15 21:04:32,172 CM Configuration Updater (Update: pid=3Dorg.ops4j= .pax.logging) ERROR Appenders contains an invalid element or attribute "app= ender" > {noformat} > So looks like my config is picked up (I fixed it eventually for sure), bu= t still ignored somehow. Googling gave me this open question on stackoverfl= ow: > http://stackoverflow.com/questions/37213432/karaf-4-0-5-with-log4j2-my-bu= ndle-log-output-always-in-console-but-should-be-in > I had the same with karaf 4.0.4, 4.0.5, 4.0.6 and now 4.0.7. > However, with 4.0.4 and 4.0.5 nothing was printed to my appenders, with 4= .0.6 and 4.0.7 I'm getting some internal karaf's messages logged there: > {noformat} > 2016-10-15T21:12:40,676 [INFO] [org.apache.aries.jmx.core] [] [] [FelixSt= artLevel] - Registering MBean with ObjectName [osgi.compendium:service=3Dcm= ,version=3D1.3,framework=3Dorg.apache.felix.framework,uuid=3Dc90c3d97-96e9-= 4718-950e-84243e98fc8f] for service with service.id [18] > 2016-10-15T21:12:41,942 [INFO] [org.apache.aries.jmx.core] [] [] [pool-39= -thread-1] - Registering org.osgi.jmx.framework.FrameworkMBean to MBeanServ= er com.sun.jmx.mbeanserver.JmxMBeanServer@54592ffa with name osgi.core:type= =3Dframework,version=3D1.7,framework=3Dorg.apache.felix.framework,uuid=3Dc9= 0c3d97-96e9-4718-950e-84243e98fc8f > 2016-10-15T21:12:41,945 [INFO] [org.apache.aries.jmx.core] [] [] [pool-39= -thread-1] - Registering org.osgi.jmx.framework.ServiceStateMBean to MBeanS= erver com.sun.jmx.mbeanserver.JmxMBeanServer@54592ffa with name osgi.core:t= ype=3DserviceState,version=3D1.7,framework=3Dorg.apache.felix.framework,uui= d=3Dc90c3d97-96e9-4718-950e-84243e98fc8f > 2016-10-15T21:12:41,947 [INFO] [org.apache.aries.jmx.core] [] [] [pool-39= -thread-1] - Registering org.osgi.jmx.framework.wiring.BundleWiringStateMBe= an to MBeanServer com.sun.jmx.mbeanserver.JmxMBeanServer@54592ffa with name= osgi.core:type=3DwiringState,version=3D1.1,framework=3Dorg.apache.felix.fr= amework,uuid=3Dc90c3d97-96e9-4718-950e-84243e98fc8f > 2016-10-15T21:12:41,948 [INFO] [org.apache.aries.jmx.core] [] [] [pool-39= -thread-1] - Registering org.osgi.jmx.framework.PackageStateMBean to MBeanS= erver com.sun.jmx.mbeanserver.JmxMBeanServer@54592ffa with name osgi.core:t= ype=3DpackageState,version=3D1.5,framework=3Dorg.apache.felix.framework,uui= d=3Dc90c3d97-96e9-4718-950e-84243e98fc8f > 2016-10-15T21:12:41,948 [INFO] [org.apache.aries.jmx.core] [] [] [pool-39= -thread-1] - Registering org.osgi.jmx.service.cm.ConfigurationAdminMBean to= MBeanServer com.sun.jmx.mbeanserver.JmxMBeanServer@54592ffa with name osgi= .compendium:service=3Dcm,version=3D1.3,framework=3Dorg.apache.felix.framewo= rk,uuid=3Dc90c3d97-96e9-4718-950e-84243e98fc8f > 2016-10-15T21:12:41,950 [INFO] [org.apache.aries.jmx.core] [] [] [pool-39= -thread-1] - Registering org.osgi.jmx.framework.BundleStateMBean to MBeanSe= rver com.sun.jmx.mbeanserver.JmxMBeanServer@54592ffa with name osgi.core:ty= pe=3DbundleState,version=3D1.7,framework=3Dorg.apache.felix.framework,uuid= =3Dc90c3d97-96e9-4718-950e-84243e98fc8f > ... > 2016-10-15T21:12:43,862 [DEBUG] [com.ubs.b2c.derivspne.datastore.api] [] = [] [FelixStartLevel] - BundleEvent RESOLVED - my.bundle.name1 > 2016-10-15T21:12:43,962 [DEBUG] [com.ubs.b2c.derivspne.levitas.impl] [] [= ] [FelixStartLevel] - BundleEvent RESOLVED - my.bundle.name2 > 2016-10-15T21:12:43,996 [DEBUG] [com.ubs.b2c.derivspne.datastore.impl] []= [] [FelixStartLevel] - BundleEvent RESOLVED - my.bundle.name3 > 2016-10-15T21:12:45,893 [INFO] [org.apache.aries.spifly.dynamic.bundle] [= ] [] [FelixStartLevel] - Bundle Considered for SPI providers: org.apache.fe= lix.framework > 2016-10-15T21:12:45,893 [INFO] [org.apache.aries.spifly.dynamic.bundle] [= ] [] [FelixStartLevel] - No 'SPI-Provider' Manifest header. Skipping bundle= : org.apache.felix.framework > 2016-10-15T21:12:45,893 [INFO] [org.apache.aries.spifly.dynamic.bundle] [= ] [] [FelixStartLevel] - Bundle Considered for SPI providers: org.ops4j.pax= .logging.pax-logging-api > 2016-10-15T21:12:45,893 [INFO] [org.apache.aries.spifly.dynamic.bundle] [= ] [] [FelixStartLevel] - No 'SPI-Provider' Manifest header. Skipping bundle= : org.ops4j.pax.logging.pax-logging-api > 2016-10-15T21:12:45,894 [INFO] [org.apache.aries.spifly.dynamic.bundle] [= ] [] [FelixStartLevel] - Bundle Considered for SPI providers: org.ops4j.pax= .logging.pax-logging-log4j2 > 2016-10-15T21:12:45,897 [INFO] [org.apache.aries.spifly.dynamic.bundle] [= ] [] [FelixStartLevel] - No 'SPI-Provider' Manifest header. Skipping bundle= : org.ops4j.pax.logging.pax-logging-log4j2 > 2016-10-15T21:12:45,898 [INFO] [org.apache.aries.spifly.dynamic.bundle] [= ] [] [FelixStartLevel] - Bundle Considered for SPI providers: org.apache.fe= lix.configadmin > 2016-10-15T21:12:45,898 [INFO] [org.apache.aries.spifly.dynamic.bundle] [= ] [] [FelixStartLevel] - No 'SPI-Provider' Manifest header. Skipping bundle= : org.apache.felix.configadmin > 2016-10-15T21:12:45,898 [INFO] [org.apache.aries.spifly.dynamic.bundle] [= ] [] [FelixStartLevel] - Bundle Considered for SPI providers: org.apache.fe= lix.fileinstall > 2016-10-15T21:12:45,898 [INFO] [org.apache.aries.spifly.dynamic.bundle] [= ] [] [FelixStartLevel] - No 'SPI-Provider' Manifest header. Skipping bundle= : org.apache.felix.fileinstall > 2016-10-15T21:12:45,898 [INFO] [org.apache.aries.spifly.dynamic.bundle] [= ] [] [FelixStartLevel] - Bundle Considered for SPI providers: org.apache.fe= lix.metatype > 2016-10-15T21:12:45,898 [INFO] [org.apache.aries.spifly.dynamic.bundle] [= ] [] [FelixStartLevel] - No 'SPI-Provider' Manifest header. Skipping bundle= : org.apache.felix.metatype > 2016-10-15T21:12:45,899 [INFO] [org.apache.aries.spifly.dynamic.bundle] [= ] [] [FelixStartLevel] - Bundle Considered for SPI providers: org.apache.ka= raf.services.eventadmin > 2016-10-15T21:12:45,899 [INFO] [org.apache.aries.spifly.dynamic.bundle] [= ] [] [FelixStartLevel] - No 'SPI-Provider' Manifest header. Skipping bundle= : org.apache.karaf.services.eventadmin > 2016-10-15T21:12:45,899 [INFO] [org.apache.aries.spifly.dynamic.bundle] [= ] [] [FelixStartLevel] - Bundle Considered for SPI providers: org.ops4j.pax= .url.mvn > 2016-10-15T21:12:45,899 [INFO] [org.apache.aries.spifly.dynamic.bundle] [= ] [] [FelixStartLevel] - No 'SPI-Provider' Manifest header. Skipping bundle= : org.ops4j.pax.url.mvn > ... > 2016-10-15T21:12:55,079 [DEBUG] [...] [] [] [SpringOsgiExtenderThread-37]= - ServiceEvent REGISTERED - [MyServiceName] - my.bundle.name > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)