Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Labels:
      None

      Description

      Hi,
      I configured my own logger log4j.properties file which is inside my bundle and in this configuration, I specied that all my bundle specific logging should go to MY_LOG.log and this log4j.properties file resides in src/main/resources folder.

            1. My Logger

      ###########################
      log4j.appender.com.client=debug
      log4j.rootLogger=DEBUG, MYLOG

      log4j.logger.org.apache.camel=DEBUG

      1. Pattern to output the caller's file name and line number.
        log4j.appender.MYLOG.layout=org.apache.log4j.PatternLayout
        log4j.appender.MYLOG.layout.ConversionPattern =%d {ABSOLUTE} %5p %c{1}:%L - %m%n
        log4j.appender.MYLOG = org.apache.log4j.DailyRollingFileAppender
        log4j.appender.MYLOG.File = MY_LOG.log
        log4j.appender.MYLOG.DatePattern='.'yyyy-MM-dd


        When I deployed my code in to FUSE ESB(apache servicemix), all my logging data is going into
        /apache_servicemix/data/log/karaf.log file and I don't find MY_LOG.log anywhere.

        and I see that /apache-servicemix/deploy folder has log4j.properties file which has the following content
        -----------------

        log4j.appender.stdout=org.apache.log4j.ConsoleAppender
        log4j.appender.stdout.Target=System.out
        log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
        log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE}

        %5p %c

        {1}

        :%L - %m%n
        log4j.rootLogger=DEBUG, stdout
        ~
        ~

      Looks like FUSE ESB is not considering my logger.

      I am wondering how we can specify to consider my logger rather than the default logger.

      Thanks.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                socallag Sean O'Callaghan
                Reporter:
                usha11 usha kanteti
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: