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 2010/11/11 12:13:14 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:
----------------------------------------
Affects Version/s: 2.0
Fix Version/s: 2.1
> 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.1
>
> 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.
-
You can reply to this email to add a comment to the issue online.