1: <?php
2: /**
3: * The Hordelog Decorator logs error events via Horde::logMessage().
4: *
5: * Copyright 2001-2012 Horde LLC (http://www.horde.org/)
6: *
7: * See the enclosed file COPYING for license information (LGPL). If you
8: * did not receive this file, see http://www.horde.org/licenses/lgpl21.
9: *
10: * @author Jan Schneider <jan@horde.org>
11: * @category Horde
12: * @package Core
13: */
14: class Horde_Core_Notification_Handler_Decorator_Hordelog
15: extends Horde_Notification_Handler_Decorator_Base
16: {
17: /**
18: * Event is being added to the Horde message stack.
19: *
20: * @param Horde_Notification_Event $event Event object.
21: * @param array $options Additional options (see
22: * Horde_Notification_Handler for
23: * details).
24: */
25: public function push(Horde_Notification_Event $event, $options)
26: {
27: Horde::logMessage($event->message, 'DEBUG');
28: }
29:
30: }
31: