logging-log4php-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Wong (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (LOG4PHP-163) LoggerPatternConverter formats max incorrectly
Date Wed, 23 Nov 2011 11:59:39 GMT

     [ https://issues.apache.org/jira/browse/LOG4PHP-163?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Daniel Wong updated LOG4PHP-163:
--------------------------------

    Attachment: patchfile
    
> LoggerPatternConverter formats max incorrectly
> ----------------------------------------------
>
>                 Key: LOG4PHP-163
>                 URL: https://issues.apache.org/jira/browse/LOG4PHP-163
>             Project: Log4php
>          Issue Type: Bug
>          Components: Code
>    Affects Versions: 2.3
>            Reporter: Daniel Wong
>            Priority: Trivial
>              Labels: patch
>         Attachments: patchfile
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> 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); 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message