⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.78
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
psa-pear
/
pear
/
php
/
Horde
/
Log
/
Handler
/
View File Name :
Base.php
* @author Chuck Hagenbuch
* @category Horde * @license http://www.horde.org/licenses/bsd BSD * @package Log * @subpackage Handlers */ /** * @author Mike Naberezny
* @author Chuck Hagenbuch
* @category Horde * @license http://www.horde.org/licenses/bsd BSD * @package Log * @subpackage Handlers */ abstract class Horde_Log_Handler_Base { /** * Options. * * @var array */ protected $_options = array( 'ident' => '' ); /** * List of filter objects. * * @var array */ protected $_filters = array(); /** * Add a filter specific to this handler. * * @param Horde_Log_Filter $filter Filter to add. */ public function addFilter($filter) { $this->_filters[] = is_integer($filter) ? new Horde_Log_Filter_Level($filter) : $filter; } /** * Log a message to this handler. * * @param array $event Log event. */ public function log($event) { // If any local filter rejects the message, don't log it. foreach ($this->_filters as $filter) { if (!$filter->accept($event)) { return; } } $this->write($event); } /** * Sets an option specific to the implementation of the log handler. * * @param string $optionKey Key name for the option to be changed. Keys * are handler-specific. * @param mixed $optionValue New value to assign to the option * * @return boolean True. * @throws Horde_Log_Exception */ public function setOption($optionKey, $optionValue) { if (!isset($this->_options[$optionKey])) { throw new Horde_Log_Exception('Unknown option "' . $optionKey . '".'); } $this->_options[$optionKey] = $optionValue; return true; } /** * Buffer a message to be stored in the storage. * * @param array $event Log event. */ abstract public function write($event); }