<ac:macro ac:name="unmigrated-inline-wiki-markup"><ac:plain-text-body><![CDATA[
This proposition covers a new factory method in Zend_Log that eases the creation and configuration of the Zend_Log object.Zend Framework: Zend_Log Component Proposal
Proposed Component Name
Zend_Log
Developer Notes
http://framework.zend.com/wiki/display/ZFDEV/Zend_Log
Proposers
Martin Roest
Zend Liaison
TBD
Revision
1.0 - 29 september 2008: Initial Draft. (wiki revision: 12)
Table of Contents
1. Overview
2. References
3. Component Requirements, Constraints, and Acceptance Criteria
4. Dependencies on Other Framework Components
5. Theory of Operation
Enable the creation and setup of the Zend_Log object from a Zend_Config object similar the Zend_Db::factory()
A user is able to setup a configuration file with the help of Zend_Config creates the config object and passes the relevant section to the Zend_Log::factory(). The factory method will create the Zend_Log object and adds the configured and enabled log writers.
This allows easy configuration and enable/disable logwriters per config section.
6. Milestones / Tasks
- Milestone 1: Change the log writers to accept a Zend_Config object or Array when constructing the writer
- Milestone 2: Add the factory method
7. Class Index
- Zend_Log
- Zend_Log_Writer_*
- Zend_Log_Filter_*
- Zend_Log_Exception
8. Use Cases
| UC-01 |
|---|
config.ini (The namespace property is only to indicate support for namespace prefix. It defaults to Zend_Log_Writer):
bootstrap/setup
9. Class Skeletons
Zend_Log
Example of how to implement it with the Zend_Log_Writer_Db