/usr/share/php/Horde/Notification/Handler/Decorator/Log.php is in php-horde-notification 2.0.4-3ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | <?php
/**
* The Log Decorator logs error events when they are pushed on the stack.
*
* Copyright 2001-2016 Horde LLC (http://www.horde.org/)
*
* See the enclosed file COPYING for license information (LGPL). If you
* did not receive this file, see http://www.horde.org/licenses/lgpl21.
*
* @author Jan Schneider <jan@horde.org>
* @category Horde
* @license http://www.horde.org/licenses/lgpl21 LGPL 2.1
* @package Notification
*/
class Horde_Notification_Handler_Decorator_Log
extends Horde_Notification_Handler_Decorator_Base
{
/**
* The log handler.
*
* @var object
*/
private $_logger;
/**
* Constructor.
*
* @param object $logger The log handler. The provided instance is
* required to implement the debug() function. You
* should be able to use a common Logger here (PEAR
* Log, Horde_Log_Logger, or Zend_Log).
*/
public function __construct($logger)
{
$this->_logger = $logger;
}
/**
* Event is being added to the Horde message stack.
*
* @param Horde_Notification_Event $event Event object.
* @param array $options Additional options (see
* Horde_Notification_Handler for
* details).
*/
public function push(Horde_Notification_Event $event, $options)
{
$this->_logger->debug($event->message);
}
}
|