<?php
/**
* Logger interface definition.
* This interface defines the methods that must be implemented in a Logger class
*
* @author Marius Zadara <marius@zadara.org>
* @category org.zadara.marius.logger.interfaces
* @copyright (C) 2008 Marius Zadara <marius@zadara.org>
* @license GNU GPL
* @package org.zadara.marius.logger
* @see Logger
*/
interface ILogger
{
/**
* Method used to register a handler.
* This event handler will be the one to decide if the event gets exported or not
*
* @param EventHandler $eventHandler The new event handler
*/
public function registerHandler($eventHandler);
/**
* Method to add an event.
*
* @param Event $newEvent The new event to add in logger
*/
public function addEvent($newEvent);
}
?>
|