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:15:15 UTC
[jira] Updated: (LOG4PHP-126) LoggerConfiguratorPhp does not appear
to respect appender file property from config
[ https://issues.apache.org/jira/browse/LOG4PHP-126?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Christian Grobmeier updated LOG4PHP-126:
----------------------------------------
Affects Version/s: (was: 2.3)
2.0
Fix Version/s: 2.1
> LoggerConfiguratorPhp does not appear to respect appender file property from config
> -----------------------------------------------------------------------------------
>
> Key: LOG4PHP-126
> URL: https://issues.apache.org/jira/browse/LOG4PHP-126
> Project: Log4php
> Issue Type: Bug
> Components: Code
> Affects Versions: 2.0
> Environment: all
> Reporter: Peter Chapman
> Fix For: 2.1
>
>
> When setting a log file path in an appender block within the php config array, the LoggerConfiguratorPhp::doConfigure does not respect this property.
> I have resolved the issue by adding the following code to the LoggerConfiguratorPhp class after line #80:
> if(isset($appenderProperties['file']) && method_exists($appender, 'setFileName')) {
> $appender->setFile($appenderProperties['file'], true);
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.