Formatted logs
--------------

                 Key: LOG4PHP-119
                 URL: https://issues.apache.org/jira/browse/LOG4PHP-119
             Project: Log4php
          Issue Type: New Feature
          Components: Code
            Reporter: darja
            Priority: Minor


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: {2}", 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.
-
You can reply to this email to add a comment to the issue online.

Reply via email to