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 "Knut Urdalen (JIRA)" <ji...@apache.org> on 2009/05/03 08:50:30 UTC
[jira] Created: (LOG4PHP-36) Implement a LoggerPhpConfigurator
Implement a LoggerPhpConfigurator
---------------------------------
Key: LOG4PHP-36
URL: https://issues.apache.org/jira/browse/LOG4PHP-36
Project: Log4php
Issue Type: New Feature
Components: Code
Reporter: Knut Urdalen
Priority: Minor
Fix For: 2.0
While having the possibility to configure log4php through OO, a property file or a XML file, we miss the option of providing configuration as a pure PHP config file which returns an array with all configuration.
Here's an example of how I would like to configure log4php through a PHP array:
<?php
return array(
'rootLogger' => array(
'level' => 'DEBUG',
'appender' => 'default',
),
'appenders' => array(
'default' => array(
'class' => 'LoggerAppenderEcho',
'layout' => array(
'class' => 'LoggerPatternLayout',
'conversionPattern' => "%d{Y-m-d H:i:s} %-5p %c %X{username}: %m in %F at %L%n",
),
'filter' => array(
'class' => 'LoggerLevelMatchFilter',
'levelToMatch' => 'DEBUG',
'acceptOnMatch' => false,
),
),
),
);
?>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (LOG4PHP-36) Implement a LoggerPhpConfigurator
Posted by "Christian Grobmeier (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LOG4PHP-36?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Christian Grobmeier updated LOG4PHP-36:
---------------------------------------
Fix Version/s: (was: 2.0)
2.1
Basic staff is already working, complete funtctionallity in 2.1.
> Implement a LoggerPhpConfigurator
> ---------------------------------
>
> Key: LOG4PHP-36
> URL: https://issues.apache.org/jira/browse/LOG4PHP-36
> Project: Log4php
> Issue Type: New Feature
> Components: Code
> Reporter: Knut Urdalen
> Priority: Minor
> Fix For: 2.1
>
>
> While having the possibility to configure log4php through OO, a property file or a XML file, we miss the option of providing configuration as a pure PHP config file which returns an array with all configuration.
> Here's an example of how I would like to configure log4php through a PHP array:
> <?php
> return array(
> 'rootLogger' => array(
> 'level' => 'DEBUG',
> 'appender' => 'default',
> ),
> 'appenders' => array(
> 'default' => array(
> 'class' => 'LoggerAppenderEcho',
> 'layout' => array(
> 'class' => 'LoggerPatternLayout',
> 'conversionPattern' => "%d{Y-m-d H:i:s} %-5p %c %X{username}: %m in %F at %L%n",
> ),
> 'filter' => array(
> 'class' => 'LoggerLevelMatchFilter',
> 'levelToMatch' => 'DEBUG',
> 'acceptOnMatch' => false,
> ),
> ),
> ),
> );
> ?>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (LOG4PHP-36) Implement a LoggerPhpConfigurator
Posted by "Christian Grobmeier (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LOG4PHP-36?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Christian Grobmeier resolved LOG4PHP-36.
----------------------------------------
Resolution: Fixed
Thanks Moritz. Your patch has been applied in rv955855
I will close this issue now, even when LoggerPhpConfigurator is not 100% complete. New features on this class should come as a separate issue, since the basic functionallity is there and its usable.
> Implement a LoggerPhpConfigurator
> ---------------------------------
>
> Key: LOG4PHP-36
> URL: https://issues.apache.org/jira/browse/LOG4PHP-36
> Project: Log4php
> Issue Type: New Feature
> Components: Code
> Reporter: Knut Urdalen
> Priority: Minor
> Fix For: 2.1
>
> Attachments: LOG4PHP-36_set-all-appender-props.diff
>
>
> While having the possibility to configure log4php through OO, a property file or a XML file, we miss the option of providing configuration as a pure PHP config file which returns an array with all configuration.
> Here's an example of how I would like to configure log4php through a PHP array:
> <?php
> return array(
> 'rootLogger' => array(
> 'level' => 'DEBUG',
> 'appender' => 'default',
> ),
> 'appenders' => array(
> 'default' => array(
> 'class' => 'LoggerAppenderEcho',
> 'layout' => array(
> 'class' => 'LoggerPatternLayout',
> 'conversionPattern' => "%d{Y-m-d H:i:s} %-5p %c %X{username}: %m in %F at %L%n",
> ),
> 'filter' => array(
> 'class' => 'LoggerLevelMatchFilter',
> 'levelToMatch' => 'DEBUG',
> 'acceptOnMatch' => false,
> ),
> ),
> ),
> );
> ?>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (LOG4PHP-36) Implement a LoggerPhpConfigurator
Posted by "Moritz Schmidt (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LOG4PHP-36?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Moritz Schmidt updated LOG4PHP-36:
----------------------------------
Attachment: LOG4PHP-36_set-all-appender-props.diff
(apply to rev925745): set not only class & layout to appenders, but also all remaining properties
> Implement a LoggerPhpConfigurator
> ---------------------------------
>
> Key: LOG4PHP-36
> URL: https://issues.apache.org/jira/browse/LOG4PHP-36
> Project: Log4php
> Issue Type: New Feature
> Components: Code
> Reporter: Knut Urdalen
> Priority: Minor
> Fix For: 2.1
>
> Attachments: LOG4PHP-36_set-all-appender-props.diff
>
>
> While having the possibility to configure log4php through OO, a property file or a XML file, we miss the option of providing configuration as a pure PHP config file which returns an array with all configuration.
> Here's an example of how I would like to configure log4php through a PHP array:
> <?php
> return array(
> 'rootLogger' => array(
> 'level' => 'DEBUG',
> 'appender' => 'default',
> ),
> 'appenders' => array(
> 'default' => array(
> 'class' => 'LoggerAppenderEcho',
> 'layout' => array(
> 'class' => 'LoggerPatternLayout',
> 'conversionPattern' => "%d{Y-m-d H:i:s} %-5p %c %X{username}: %m in %F at %L%n",
> ),
> 'filter' => array(
> 'class' => 'LoggerLevelMatchFilter',
> 'levelToMatch' => 'DEBUG',
> 'acceptOnMatch' => false,
> ),
> ),
> ),
> );
> ?>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.