Skip to end of metadata
Go to start of metadata

<ac:macro ac:name="unmigrated-inline-wiki-markup"><ac:plain-text-body><![CDATA[

<ac:macro ac:name="unmigrated-inline-wiki-markup"><ac:plain-text-body><![CDATA[

Zend Framework: Zend_Log_Writer_Doctrine Component Proposal

Proposed Component Name Zend_Log_Writer_Doctrine
Developer Notes http://framework.zend.com/wiki/display/ZFDEV/Zend_Log_Writer_Doctrine
Proposers Matthew Lurz
Zend Liaison TBD
Revision 0.1 - 2 June 2009: Initial Draft. (wiki revision: 7)

Table of Contents

1. Overview

Zend_Log_Writer_Doctrine is a log writer modeled after Zend_Log_Writer_Db for the Doctrine O/RM.

A working prototype is available here

2. References

  • Doctrine_Table
  • Zend_Log_Writer_Db

3. Component Requirements, Constraints, and Acceptance Criteria

  • This component will require a pre-configured Doctrine environment
  • This component will write log data to a Doctrine_Table
  • This component will allow configuration of column mappings
  • This component will not support formatters

4. Dependencies on Other Framework Components

  • Zend_Log_Writer_Abstract

5. Theory of Operation

The constructor of Zend_Log_Writer_Doctrine receives the name of a model class and an array mapping of database columns to event data items.

6. Milestones / Tasks

  • Milestone 1: [DONE] Initial proposal published for review.
  • Milestone 2: Working prototype checked into the incubator supporting use cases #1, #2, ...
  • Milestone 3: Working prototype checked into the incubator supporting use cases #3 and #4.
  • Milestone 4: Unit tests exist, work, and are checked into SVN.
  • Milestone 5: Initial documentation exists.

7. Class Index

  • Zend_Log_Writer_Doctrine

8. Use Cases

UC-01

Write a message to the log

Generate model class from Yaml schema

...Or, create model class manually

Instantiate and write a message to the log

9. Class Skeletons

]]></ac:plain-text-body></ac:macro>

]]></ac:plain-text-body></ac:macro>

Labels:
None
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. Dec 08, 2009

    <p>This looks good. What's the status of it?</p>

    1. Dec 09, 2009

      <p>It's been a while since I've looked at this, but the prototype should work for the most basic of use cases at least. You can grab an updated version from <a class="external-link" href="http://github.com/mlurz71/parables/blob/master/Parables/Log/Writer/Doctrine.php">http://github.com/mlurz71/parables/blob/master/Parables/Log/Writer/Doctrine.php</a>. Sorry, no unit tests yet.</p>