Issues

ZF-3581: Add Zend_Log::getWriters() to return list of attached writers

Issue Type: Improvement Created: 2008-07-04T08:08:29.000+0000 Last Updated: 2010-06-21T12:32:20.000+0000 Status: Postponed Fix version(s): Reporter: Lars Strojny (lars) Assignee: Eddo Rotman (karnaf) Tags: - Zend_Log

Related issues: Attachments: - 009-Zend_Log-getWriters-method.diff

Description

Zend_Log should have a getWriters() method to return the list of attached writes for better testing.

Comments

Posted by Lars Strojny (lars) on 2008-07-04T08:09:33.000+0000

Patch to add Zend_Log::getWriters()

Posted by Lars Strojny (lars) on 2008-08-27T19:49:32.000+0000

Anything problematic with this change? It is really simple and as far as I'm aware does not create any backwards compatibility issues

Posted by Wil Sinclair (wil) on 2009-01-21T11:17:07.000+0000

I don't see a problem with this change, although it will have to wait for 1.8 since it changes the API of Zend_Log. I will check with Matthew to make sure the change is OK with him and , if so, commit accessors for all the properties on Zend_Log.

Posted by Wil Sinclair (wil) on 2009-01-26T09:14:19.000+0000

Postponing pending Matthew's comment. If he is OK with it, we will schedule the change for 1.8.

Posted by Matthew Weier O'Phinney (matthew) on 2009-01-26T09:18:29.000+0000

The change is fine. It should be noted, however, that this would return an array -- not an array reference. If other methods are desired for manipulating the list of writers, we should address that at some point. Otherwise, this looks fine.

Posted by Thomas Weidner (thomas) on 2010-03-21T10:21:38.000+0000

Reassigning to component maintainer

Posted by Felipe Cardoso Martins (macafe) on 2010-06-21T12:32:17.000+0000

What do you think about add a identify name to writer and your respective getter?

Example:

$tmp = getWriter('supportTeam'); $tmp->addFilter(Zend_Log::CRIT);

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts