[
https://issues.apache.org/jira/browse/LOG4PHP-57?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Christian Grobmeier resolved LOG4PHP-57.
----------------------------------------
Resolution: Fixed
Good catch!
I made destructors for all appenders.
Logger::shutdown is not longer necessary - its just emptying an array.
TO discuss: remove it! :-)
> "please shutdown all loggers" - we have destructors for this!
> -------------------------------------------------------------
>
> Key: LOG4PHP-57
> URL: https://issues.apache.org/jira/browse/LOG4PHP-57
> Project: Log4php
> Issue Type: Improvement
> Components: Code
> Affects Versions: 2.2
> Reporter: Christian Hammers
> Fix For: 2.0
>
>
> From the intro:
> "Last but not least, please shutdown all loggers, appenders and whatever with:
> LoggerManager::shutdown();"
> I guess closing open files should be handled in __desctruct().
> (I did not check how e.g. file appenders are implemented but it should be
> considered to flush them after writing or
> at least offer some kind of "synchronized" mode because if an application
> crashes, the very last message should not
> be lost just because PHP did not yet run the __destruct()).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.