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

Ivan Habunek updated LOG4PHP-119:
---------------------------------

    Fix Version/s:     (was: 2.2)

I love this idea, but it requires quite a lot of work so it will not be 
included in 2.2.
                
> Formatted logs
> --------------
>
>                 Key: LOG4PHP-119
>                 URL: https://issues.apache.org/jira/browse/LOG4PHP-119
>             Project: Log4php
>          Issue Type: New Feature
>          Components: Code
>    Affects Versions: 2.0
>            Reporter: Darja Ryazhskikh
>            Priority: Minor
>         Attachments: log4php_format.patch
>
>
> In log4net there is a set of functions for formatted logs - InfoFormat, 
> DebugFormat, etc. They are using System.String.Format for outputing logs. So, 
> in log4net we can write:
> Logger.DebugFormat("Object1: {0}, Object2: {1}", obj1, obj2);
> And in log4php we need
> $logger->debug("Object1:");
> $logger->debug($obj1);
> $logger->debug("Object2:");
> $logger->debug($obj2);
> Obviously, log4net way is more applicable. It will be great to implement 
> something like this in log4php.

--
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

        

Reply via email to