PHP Classes

File: _interfaces/ILogger.intf.php

Recommend this page to a friend!
  Classes of Marius Zadara   Logger   _interfaces/ILogger.intf.php   Download  
File: _interfaces/ILogger.intf.php
Role: Class source
Content type: text/plain
Description: Logger interface
Class: Logger
Filter and export data of application events
Author: By
Last change:
Date: 15 years ago
Size: 804 bytes
 

Contents

Class file image Download
<?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);
}


?>