Uploaded image for project: 'Log4php'
  1. Log4php
  2. LOG4PHP-20

Custom layout for LoggerAppenderPhp

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 2.0.0
    • Code
    • None
    • PHP 5.2.6 (cli) (built: Sep 12 2008 10:59:28)
      Mac OS X 10.4.11

    Description

      PROBLEM

      Using the following configuration file, all messages in php log remain as TTCC format.

      log4php.appender.default=LoggerAppenderPhp
      log4php.appender.default.layout=LoggerPatternLayout
      log4php.appender.default.layout.conversionPattern="%-5p [%t] %c: %m%n"
      log4php.rootLogger=DEBUG, default

      SOLUTION

      In LoggerAppenderPhp class:

      First I removed the setting of the layout in activateOptions. Second I added the requiresLayout (defaulting to true) instance member.

      Attachments

        1. LOG4PHP-20.patch
          2 kB
          Hiroaki Kawai

        Activity

          People

            kurdalen Knut Urdalen
            corin Corin Lawson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 10m
                10m
                Remaining:
                Remaining Estimate - 10m
                10m
                Logged:
                Time Spent - Not Specified
                Not Specified