This repository has been archived by the owner on May 16, 2018. It is now read-only.
Zend_Application add Log to Translate, Cachemanager #103
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I'd like to configure my loggers for Translate and Cachemanger for example via
Zend_Config_Ini
. Naturally the log array will be passed to the resource, resulting in an exception that it's not an instance ofZend_Log
. So i added some checks in these resources to make them so.This is a purely optional feature, please take consideration to add it.
Some documentation, not yet included:
Zend_Application_Resource_Translate
The following configuration keys are recognized:
log : Configuration will be passed to the
Zend_Log::factory()
method, allowing you to specify combinations of log writers and filters.Zend_Application_Resource_Cachemanager
Example #2 Logger configuration
Initial source: https://github.com/croensch/zendcastle/