10 Replies Latest reply on Apr 6, 2011 12:38 PM by dead devil

    where is my debugging info?? jeez...

    dead devil Newbie

      Greetings.

       

      Im getting a bit tired of this, right now. Im just a young student trying to use fuse for a university project. I'm have been trying to use log4j, properly, FOR WEEKS. I have done EVERYTHING like the tutorials and EXACTLY like one of my colleagues. Seems that, for any divine reason, this just don't print the freaking log.

       

      I'm sorry if im sounding unpleasant but im desperated. Seems that xubuntu repositories have a problem with maven because, after moving to ubuntu, i don't get the error declaring that log4j dependency doesn't exist!!! Hilarious indeed (not).

       

      After maaaaany errors and bangings in the wall, it seems that i get no errors when i build a bundle. Well, the new problem is that i can't see any freaking thing in the log. This is my simple and humble code:

       

       

       

      package com.progress.pso2.apiv2;

       

      import org.apache.log4j.Logger;

      import org.springframework.beans.factory.DisposableBean;

      import org.springframework.beans.factory.InitializingBean;

       

      public class minha_apiv2 implements InitializingBean, DisposableBean{

            

           private static Logger log = Logger.getLogger(minha_apiv2.class);

            

           public void method1(){

                log.debug("method1 called");

           }

            

           public void method2(){

                log.debug("method2 called");

           }

            

           public void method3(){

                log.debug("method3 called");

           }

       

           public void destroy() throws Exception {

                log.debug("goodbye apiv2");

           }

       

           public void afterPropertiesSet() throws Exception {

                log.debug("hello apiv2");          

           }

      }

       

      and now, in servicemix console:

       

      osgi:install mvn:com.progress.pso2/apiv2

      log:set WARN

      log:set DEBUG com.progress.pso2

      osgi:start

      log:display

       

       

      and...guess what!!! No debug strings printed!!!

       

      What is going on?????? Please please please help me, i got no clue on what is going on right here :/

       

      Edited by: dead_devil_66 on Mar 13, 2011 3:51 AM

        • 1. Re: where is my debugging info?? jeez...
          dead devil Newbie

          so...even simpler now

           

          package com.progress.pso3;

           

          import org.apache.log4j.Logger;

          import org.springframework.beans.factory.DisposableBean;

          import org.springframework.beans.factory.InitializingBean;

           

          public class apiv3class implements InitializingBean, DisposableBean{

               private Logger log = Logger.getLogger(apiv3class.class);

           

               public void destroy() throws Exception {

                    log.debug("Goodbye apiv3");

               }

           

               public void afterPropertiesSet() throws Exception {

                    log.debug("Hello apiv3");

               }

                

          }

           

          the log output was

           

           

          4:04:42,361 | INFO  | rint Extender: 3 | SecurityUtils                    | ?                                   ? | 30 - sshd-core - 0.4.0 | BouncyCastle not registered, using the default JCE provider

          04:04:43,466 | WARN  | rint Extender: 3 | BlueprintContainerImpl           | ?                                   ? | 7 - org.apache.aries.blueprint - 0.2.0.incubating | Bundle activemq-broker.xml is waiting for namespace handlers (&(objectClass=org.apache.aries.blueprint.NamespaceHandler)(osgi.service.blueprint.namespace=http://activemq.apache.org/schema/core))

          04:04:43,562 | WARN  | rint Extender: 2 | XBeanNamespaceHandler            | ?                                   ? | 52 - org.apache.xbean.blueprint - 3.7 | Could not load class: org.apache.activemq.store.journal.JournalPersistenceAdapter due to org/apache/activeio/journal/JournalEventListener

          04:04:43,756 | WARN  | rint Extender: 2 | XBeanNamespaceHandler            | ?                                   ? | 52 - org.apache.xbean.blueprint - 3.7 | Could not load class: org.apache.activemq.store.journal.JournalPersistenceAdapterFactory due to org/apache/activeio/journal/active/JournalLockedException

          04:04:43,832 | WARN  | rint Extender: 2 | XBeanNamespaceHandler            | ?                                   ? | 52 - org.apache.xbean.blueprint - 3.7 | Could not load class: org.apache.activemq.store.PersistenceAdapterFactoryBean due to org/apache/activeio/journal/active/JournalLockedException

          04:04:44,442 | INFO  | Event Dispatcher | Activator                        | ?                                   ? | 68 - org.apache.camel.camel-core - 2.6.0.fuse-00-00 | Camel activator starting

          04:04:45,060 | INFO  | Event Dispatcher | Activator                        | ?                                   ? | 68 - org.apache.camel.camel-core - 2.6.0.fuse-00-00 | Camel activator started

          04:04:45,184 | INFO  | Event Dispatcher | ContextLoaderListener            | ?                                   ? | 72 - org.springframework.osgi.extender - 1.2.0 | Starting bundle v.[1.2.0]

          04:04:45,327 | WARN  | Event Dispatcher | NamespaceManager                 | ?                                   ? | 72 - org.springframework.osgi.extender - 1.2.0 | Bundle activemq-ra (org.apache.activemq.activemq-ra) cannot see class ; ignoring its namespace handlers

          04:04:45,500 | WARN  | Event Dispatcher | NamespaceManager                 | ?                                   ? | 72 - org.springframework.osgi.extender - 1.2.0 | Bundle Apache XBean :: Classloader (org.apache.xbean.classloader) cannot see class ; ignoring its namespace handlers

          04:04:45,768 | INFO  | rint Extender: 3 | ActiveMQResourceManager          | ?                                   ? | 47 - org.apache.activemq.activemq-pool - 5.4.2.fuse-01-00 | Resource manager is unrecoverable

          04:04:45,775 | INFO  | Event Dispatcher | ExtenderConfiguration            | ?                                   ? | 72 - org.springframework.osgi.extender - 1.2.0 | No custom extender configuration detected; using defaults...

          04:04:45,800 | INFO  | Event Dispatcher | TimerTaskExecutor                | ?                                   ? | 61 - org.springframework.context - 3.0.5.RELEASE | Initializing Timer

          04:04:45,979 | INFO  | rint Extender: 3 | PListStore                       | ?                                   ? | 43 - org.apache.activemq.activemq-core - 5.4.2.fuse-01-00 | PListStore:/home/echo66/apache-servicemix-4.3.1-fuse-00-00/data/activemq/default/default/tmp_storage started

          04:04:46,001 | INFO  | rint Extender: 3 | BrokerService                    | ?                                   ? | 43 - org.apache.activemq.activemq-core - 5.4.2.fuse-01-00 | Using Persistence Adapter: KahaDBPersistenceAdapter[/home/echo66/apache-servicemix-4.3.1-fuse-00-00/data/activemq/default/kahadb]

          04:04:46,502 | INFO  | rint Extender: 3 | BrokerService                    | ?                                   ? | 43 - org.apache.activemq.activemq-core - 5.4.2.fuse-01-00 | ActiveMQ 5.4.2-fuse-01-00 JMS Message Broker (default) is starting

          04:04:46,503 | INFO  | rint Extender: 3 | BrokerService                    | ?                                   ? | 43 - org.apache.activemq.activemq-core - 5.4.2.fuse-01-00 | For help or more information please see: http://activemq.apache.org/

          04:04:46,727 | INFO  | rint Extender: 3 | TransportServerThreadSupport     | ?                                   ? | 43 - org.apache.activemq.activemq-core - 5.4.2.fuse-01-00 | Listening for connections at: tcp://localhost.localdomain:61616

          04:04:46,735 | INFO  | rint Extender: 3 | TransportConnector               | ?                                   ? | 43 - org.apache.activemq.activemq-core - 5.4.2.fuse-01-00 | Connector openwire Started

          04:04:46,745 | INFO  | rint Extender: 3 | TransportServerThreadSupport     | ?                                   ? | 43 - org.apache.activemq.activemq-core - 5.4.2.fuse-01-00 | Listening for connections at: stomp://localhost.localdomain:61613

          04:04:46,760 | INFO  | rint Extender: 3 | TransportConnector               | ?                                   ? | 43 - org.apache.activemq.activemq-core - 5.4.2.fuse-01-00 | Connector stomp Started

          04:04:46,761 | INFO  | rint Extender: 3 | BrokerService                    | ?                                   ? | 43 - org.apache.activemq.activemq-core - 5.4.2.fuse-01-00 | ActiveMQ JMS Message Broker (default, ID:echo66-G1S-58594-1299989086525-0:1) started

          04:04:49,278 | INFO  | Thread-7         | FeaturesServiceImpl              | ?                                   ? | 24 - org.apache.karaf.features.core - 2.1.3.fuse-00-00 | Bundles to refresh: org.apache.activemq.activemq-ra (46), org.ops4j.pax.web.pax-web-jsp (105), org.springframework.jms (95), org.springframework.context (61), servicemix-common (90), org.apache.servicemix.bundles.abdera (131), org.springframework.context.support (62), servicemix-utils (79), org.apache.cxf.bundle (137), org.apache.servicemix.document (78), org.springframework.transaction (74), org.apache.aries.transaction.manager (49)

          04:04:49,279 | INFO  | Thread-7         | FeaturesServiceImpl              | ?                                   ? | 24 - org.apache.karaf.features.core - 2.1.3.fuse-00-00 | Refreshing bundles: org.apache.activemq.activemq-ra (46), org.ops4j.pax.web.pax-web-jsp (105), org.springframework.jms (95), org.springframework.context (61), servicemix-common (90), org.apache.servicemix.bundles.abdera (131), org.springframework.context.support (62), servicemix-utils (79), org.apache.cxf.bundle (137), org.apache.servicemix.document (78), org.springframework.transaction (74), org.apache.aries.transaction.manager (49)

          04:04:49,424 | INFO  | Refresh Packages | ContextLoaderListener            | ?                                   ? | 72 - org.springframework.osgi.extender - 1.2.0 | Stopping bundle v.[1.2.0]

          04:04:49,436 | INFO  | Refresh Packages | TimerTaskExecutor                | ?                                   ? | 61 - org.springframework.context - 3.0.5.RELEASE | Cancelling Timer

          04:04:49,438 | INFO  | Refresh Packages | Activator                        | ?                                   ? | 68 - org.apache.camel.camel-core - 2.6.0.fuse-00-00 | Camel activator stopping

          04:04:49,439 | INFO  | Refresh Packages | Activator                        | ?                                   ? | 68 - org.apache.camel.camel-core - 2.6.0.fuse-00-00 | Camel activator stopped

          04:04:49,441 | INFO  | Refresh Packages | BrokerService                    | ?                                   ? | 43 - org.apache.activemq.activemq-core - 5.4.2.fuse-01-00 | ActiveMQ Message Broker (default, ID:echo66-G1S-58594-1299989086525-0:1) is shutting down

          04:04:50,742 | INFO  | Refresh Packages | TransportConnector               | ?                                   ? | 43 - org.apache.activemq.activemq-core - 5.4.2.fuse-01-00 | Connector openwire Stopped

          04:04:50,771 | INFO  | Refresh Packages | TransportConnector               | ?                                   ? | 43 - org.apache.activemq.activemq-core - 5.4.2.fuse-01-00 | Connector stomp Stopped

          04:04:50,780 | INFO  | Refresh Packages | PListStore                       | ?                                   ? | 43 - org.apache.activemq.activemq-core - 5.4.2.fuse-01-00 | PListStore:/home/echo66/apache-servicemix-4.3.1-fuse-00-00/data/activemq/default/default/tmp_storage stopped

          04:04:50,780 | INFO  | Refresh Packages | KahaDBStore                      | ?                                   ? | 43 - org.apache.activemq.activemq-core - 5.4.2.fuse-01-00 | Stopping async queue tasks

          04:04:50,780 | INFO  | Refresh Packages | KahaDBStore                      | ?                                   ? | 43 - org.apache.activemq.activemq-core - 5.4.2.fuse-01-00 | Stopping async topic tasks

          04:04:50,780 | INFO  | Refresh Packages | KahaDBStore                      | ?                                   ? | 43 - org.apache.activemq.activemq-core - 5.4.2.fuse-01-00 | Stopped KahaDB

          04:04:51,174 | INFO  | Refresh Packages | BrokerService                    | ?                                   ? | 43 - org.apache.activemq.activemq-core - 5.4.2.fuse-01-00 | ActiveMQ JMS Message Broker (default, ID:echo66-G1S-58594-1299989086525-0:1) stopped

          04:04:51,684 | WARN  | rint Extender: 1 | BlueprintContainerImpl           | ?                                   ? | 7 - org.apache.aries.blueprint - 0.2.0.incubating | Bundle activemq-broker.xml is waiting for namespace handlers (&(objectClass=org.apache.aries.blueprint.NamespaceHandler)(osgi.service.blueprint.namespace=http://activemq.apache.org/schema/core))

          04:04:51,692 | INFO  | Refresh Packages | Activator                        | ?                                   ? | 68 - org.apache.camel.camel-core - 2.6.0.fuse-00-00 | Camel activator starting

          04:04:51,799 | INFO  | Refresh Packages | Activator                        | ?                                   ? | 68 - org.apache.camel.camel-core - 2.6.0.fuse-00-00 | Camel activator started

          04:04:51,864 | WARN  | rint Extender: 2 | XBeanNamespaceHandler            | ?                                   ? | 52 - org.apache.xbean.blueprint - 3.7 | Could not load class: org.apache.activemq.store.journal.JournalPersistenceAdapter due to org/apache/activeio/journal/JournalEventListener

          04:04:51,865 | INFO  | Refresh Packages | ContextLoaderListener            | ?                                   ? | 72 - org.springframework.osgi.extender - 1.2.0 | Starting bundle v.[1.2.0]

          04:04:51,890 | WARN  | rint Extender: 2 | XBeanNamespaceHandler            | ?                                   ? | 52 - org.apache.xbean.blueprint - 3.7 | Could not load class: org.apache.activemq.store.journal.JournalPersistenceAdapterFactory due to org/apache/activeio/journal/active/JournalLockedException

          04:04:51,914 | WARN  | Refresh Packages | NamespaceManager                 | ?                                   ? | 72 - org.springframework.osgi.extender - 1.2.0 | Bundle activemq-ra (org.apache.activemq.activemq-ra) cannot see class ; ignoring its namespace handlers

          04:04:51,930 | WARN  | rint Extender: 2 | XBeanNamespaceHandler            | ?                                   ? | 52 - org.apache.xbean.blueprint - 3.7 | Could not load class: org.apache.activemq.store.PersistenceAdapterFactoryBean due to org/apache/activeio/journal/active/JournalLockedException

          04:04:51,960 | WARN  | Refresh Packages | NamespaceManager                 | ?                                   ? | 72 - org.springframework.osgi.extender - 1.2.0 | Bundle Apache XBean :: Classloader (org.apache.xbean.classloader) cannot see class ; ignoring its namespace handlers

          04:04:52,085 | INFO  | Refresh Packages | ExtenderConfiguration            | ?                                   ? | 72 - org.springframework.osgi.extender - 1.2.0 | No custom extender configuration detected; using defaults...

          04:04:52,102 | INFO  | Refresh Packages | TimerTaskExecutor                | ?                                   ? | 61 - org.springframework.context - 3.0.5.RELEASE | Initializing Timer

          04:04:52,434 | INFO  | rint Extender: 2 | ActiveMQResourceManager          | ?                                   ? | 47 - org.apache.activemq.activemq-pool - 5.4.2.fuse-01-00 | Resource manager is unrecoverable

          04:04:52,622 | INFO  | Thread-7         | ultOsgiApplicationContextCreator | ?                                   ? | 72 - org.springframework.osgi.extender - 1.2.0 | Discovered configurations in bundle

          04:04:52,762 | INFO  | rint Extender: 2 | PListStore                       | ?                                   ? | 43 - org.apache.activemq.activemq-core - 5.4.2.fuse-01-00 | PListStore:/home/echo66/apache-servicemix-4.3.1-fuse-00-00/data/activemq/default/default/tmp_storage started

          04:04:52,763 | INFO  | rint Extender: 2 | BrokerService                    | ?                                   ? | 43 - org.apache.activemq.activemq-core - 5.4.2.fuse-01-00 | Using Persistence Adapter: KahaDBPersistenceAdapter[/home/echo66/apache-servicemix-4.3.1-fuse-00-00/data/activemq/default/kahadb]

          04:04:52,781 | INFO  | ExtenderThread-1 | OsgiBundleXmlApplicationContext  | ?                                   ? | 61 - org.springframework.context - 3.0.5.RELEASE | Refreshing OsgiBundleXmlApplicationContext(bundle=servicemix-cxf-se, config=osgibundle:/META-INF/spring/*.xml): startup date ; root of context hierarchy

          04:04:52,782 | INFO  | ExtenderThread-1 | OsgiBundleXmlApplicationContext  | ?                                   ? | 61 - org.springframework.context - 3.0.5.RELEASE | Unpublishing application context OSGi service for bundle Apache ServiceMix :: Components :: CXF Service Engine (servicemix-cxf-se)

          04:04:52,905 | INFO  | ExtenderThread-1 | XmlBeanDefinitionReader          | ?                                   ? | 59 - org.springframework.beans - 3.0.5.RELEASE | Loading XML bean definitions from URL bundleentry://171.fwk2272087/META-INF/spring/servicemix-cxf-se.xml

          04:04:53,128 | INFO  | ExtenderThread-1 | XmlBeanDefinitionReader          | ?                                   ? | 59 - org.springframework.beans - 3.0.5.RELEASE | Loading XML bean definitions from OSGi resource[classpath:META-INF/cxf/cxf.xml|bnd.id=171|bnd.sym=servicemix-cxf-se]

          04:04:53,250 | INFO  | ExtenderThread-1 | XmlBeanDefinitionReader          | ?                                   ? | 59 - org.springframework.beans - 3.0.5.RELEASE | Loading XML bean definitions from OSGi resource[classpath:META-INF/cxf/cxf-extension-soap.xml|bnd.id=171|bnd.sym=servicemix-cxf-se]

          04:04:53,332 | INFO  | ExtenderThread-1 | XmlBeanDefinitionReader          | ?                                   ? | 59 - org.springframework.beans - 3.0.5.RELEASE | Loading XML bean definitions from OSGi resource[classpath:META-INF/cxf/transport/jbi/cxf-transport-jbi.xml|bnd.id=171|bnd.sym=servicemix-cxf-se]

          04:04:53,367 | INFO  | ExtenderThread-1 | XmlBeanDefinitionReader          | ?                                   ? | 59 - org.springframework.beans - 3.0.5.RELEASE | Loading XML bean definitions from OSGi resource[classpath:META-INF/cxf/binding/jbi/cxf-binding-jbi.xml|bnd.id=171|bnd.sym=servicemix-cxf-se]

          04:04:53,804 | INFO  | ExtenderThread-1 | DependencyServiceManager         | ?                                   ? | 72 - org.springframework.osgi.extender - 1.2.0 | Adding OSGi service dependency for importer matching OSGi filter

          04:04:53,804 | INFO  | ExtenderThread-1 | DependencyServiceManager         | ?                                   ? | 72 - org.springframework.osgi.extender - 1.2.0 | OsgiBundleXmlApplicationContext(bundle=servicemix-cxf-se, config=osgibundle:/META-INF/spring/*.xml) is waiting for unsatisfied dependencies [[&componentRegistry]]

          04:04:53,823 | INFO  | rint Extender: 2 | MessageDatabase                  | ?                                   ? | 43 - org.apache.activemq.activemq-core - 5.4.2.fuse-01-00 | KahaDB is version 3

          04:04:53,831 | INFO  | rint Extender: 2 | MessageDatabase                  | ?                                   ? | 43 - org.apache.activemq.activemq-core - 5.4.2.fuse-01-00 | Recovering from the journal ...

          04:04:53,831 | INFO  | rint Extender: 2 | MessageDatabase                  | ?                                   ? | 43 - org.apache.activemq.activemq-core - 5.4.2.fuse-01-00 | Recovery replayed 1 operations from the journal in 0.007 seconds.

          04:04:53,836 | INFO  | rint Extender: 2 | BrokerService                    | ?                                   ? | 43 - org.apache.activemq.activemq-core - 5.4.2.fuse-01-00 | ActiveMQ 5.4.2-fuse-01-00 JMS Message Broker (default) is starting

          04:04:53,836 | INFO  | rint Extender: 2 | BrokerService                    | ?                                   ? | 43 - org.apache.activemq.activemq-core - 5.4.2.fuse-01-00 | For help or more information please see: http://activemq.apache.org/

          04:04:53,994 | INFO  | rint Extender: 2 | TransportServerThreadSupport     | ?                                   ? | 43 - org.apache.activemq.activemq-core - 5.4.2.fuse-01-00 | Listening for connections at: tcp://localhost.localdomain:61616

          04:04:53,995 | INFO  | rint Extender: 2 | TransportConnector               | ?                                   ? | 43 - org.apache.activemq.activemq-core - 5.4.2.fuse-01-00 | Connector openwire Started

          04:04:53,997 | INFO  | rint Extender: 2 | TransportServerThreadSupport     | ?                                   ? | 43 - org.apache.activemq.activemq-core - 5.4.2.fuse-01-00 | Listening for connections at: stomp://localhost.localdomain:61613

          04:04:53,997 | INFO  | rint Extender: 2 | TransportConnector               | ?                                   ? | 43 - org.apache.activemq.activemq-core - 5.4.2.fuse-01-00 | Connector stomp Started

          04:04:53,998 | INFO  | rint Extender: 2 | BrokerService                    | ?                                   ? | 43 - org.apache.activemq.activemq-core - 5.4.2.fuse-01-00 | ActiveMQ JMS Message Broker (default, ID:echo66-G1S-51161-1299989093846-0:1) started

           

           

          great, still no output from the afterPropertiesSet...

           

          oh, and another thing: this time, i erased the "data" directory in fuse esb root directory. Now, after i start fuse, there are 3 errors:

           

          log4j:WARN No appenders could be found for logger (org.apache.felix.configadmin).

          log4j:WARN Please initialize the log4j system properly.

          log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.

           

          ooooh, and another thing: it's sending this warning, when fuse starts "servicemix: JAVA_HOME not set; results may vary"

           

          oh joy joy joy

           

          ...

           

          Edited by: dead_devil_66 on Mar 13, 2011 4:12 AM

          • 2. Re: where is my debugging info?? jeez...
            dead devil Newbie

            Anyone????

             

            EDIT:

             

            by the way, i solved the JAVA_HOME variable issue by adding this to .bashrc:

             

            JAVA_HOME=/usr/lib/jvm/default-java

            export JAVA_HOME

            PATH=$PATH:$JAVA_HOME/bin:

            export PATH

            CLASSPATH=$JAVA_HOME/lib/:.

            export CLASSPATH

             

            but i still don't know what's wrong with the logging system. :/

             

            Edited by: dead_devil_66 on Mar 14, 2011 2:35 AM

            • 3. Re: where is my debugging info?? jeez...
              Claus Ibsen Master

              If you use Fuse ESB then you can configure the log4j logging levels in the pax configuration file.

               

              The file is in the etc folder:

               

              apache-servicemix-4.3.1-fuse-00-00/etc/org.ops4j.pax.logging.cfg

              • 4. Re: where is my debugging info?? jeez...
                dead devil Newbie

                Thanks for replying.

                 

                But...how will that help me? If im doing the same that was done in the tutorial, what's the problem?

                • 6. Re: where is my debugging info?? jeez...
                  Willem Jiang Master

                  What the tutorials are you fellowing ?

                  Which version of Fuse ESB are you using?

                   

                  Did you have a chance to look at the  file that Claus told you ?

                   

                  Willem

                  • 7. Re: where is my debugging info?? jeez...
                    dead devil Newbie

                    I'm following the payments-api 2nd tutorial (POJO)

                     

                    The Fuse ESB version is 4.3.1

                     

                    And yes, i took a look at the file. The problem is that i don't know what to do. All this is very new to me...

                     

                    this is the content of the file:

                     

                    1. Root logger

                    log4j.rootLogger=INFO, out, osgi:VmLogAppender

                    log4j.throwableRenderer=org.apache.log4j.OsgiThrowableRenderer

                     

                    1. CONSOLE appender not used by default

                    log4j.appender.stdout=org.apache.log4j.ConsoleAppender

                    log4j.appender.stdout.layout=org.apache.log4j.PatternLayout

                    log4j.appender.stdout.layout.ConversionPattern=%d | %-5.5p | %-16.16t | %-32.32c

                    1. File appender
                    | %X{bundle.id} - %X{bundle.name} - %X{bundle.version} | %m%n log4j.appender.out=org.apache.log4j.RollingFileAppender log4j.appender.out.layout=org.apache.log4j.PatternLayout log4j.appender.out.layout.ConversionPattern=%d | %-5.5p | %-16.16t | %-32.32c
                    1. Sift appender
                    | %X{bundle.id} - %X{bundle.name} - %X{bundle.version} | %m%n log4j.appender.out.file=${karaf.data}/log/servicemix.log log4j.appender.out.append=true log4j.appender.out.maxFileSize=1MB log4j.appender.out.maxBackupIndex=10 log4j.appender.sift=org.apache.log4j.sift.MDCSiftingAppender log4j.appender.sift.key=bundle.name log4j.appender.sift.default=servicemix log4j.appender.sift.appender=org.apache.log4j.FileAppender log4j.appender.sift.appender.layout=org.apache.log4j.PatternLayout log4j.appender.sift.appender.layout.ConversionPattern=%d | %-5.5p | %-16.16t | %-32.32c
                    | %m%n

                    log4j.appender.sift.appender.file=${karaf.data}/log/$
                    {bundle.name
                    }.log

                    log4j.appender.sift.appender.append=true

                    • 9. Re: where is my debugging info?? jeez...
                      Greg Davidson Newbie

                      I was looking through the forum and saw this...not sure if you got what you needed.  Can you try changing this.

                       

                      Comment out this line:

                      #log4j.rootLogger=INFO, out, osgi:VmLogAppender

                      add this line:

                      log4j.rootLogger=INFO, sift, osgi:VmLogAppender

                       

                      This will allow you to enable a log per OSGI bundle deployed.

                      • 10. Re: where is my debugging info?? jeez...
                        dead devil Newbie

                        Thanks mate.

                         

                        I will build the project again and report if i had any success.

                         

                        Cheers