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

LoggerPatternConverter formats max incorrectly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 2.3.0
    • 2.3.0
    • Code

    Description

      When formatting using %.10F notation, the number is truncated from the end of string. Rather, it should truncate to the size of $this->max

      Propose for line LoggerPatternConverter.php:98

      $sbuf .= substr($s, ($this>max), $this->max);

      Attachments

        1. patchfile
          0.4 kB
          Daniel Wong

        Activity

          People

            juice Ivan Habunek
            dsmwong Daniel Wong
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified