You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4php-dev@logging.apache.org by "Christian Grobmeier (JIRA)" <ji...@apache.org> on 2011/05/20 09:46:47 UTC
[jira] [Updated] (LOG4PHP-119) Formatted logs
[ https://issues.apache.org/jira/browse/LOG4PHP-119?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Christian Grobmeier updated LOG4PHP-119:
----------------------------------------
Fix Version/s: (was: 2.1)
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
> Fix For: 2.2
>
> 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira