PHP Classes

File: src/Generics/Logger/ExceptionLogger.php

Recommend this page to a friend!
  Classes of Maik Greubel   PHP Generics   src/Generics/Logger/ExceptionLogger.php   Download  
File: src/Generics/Logger/ExceptionLogger.php
Role: Class source
Content type: text/plain
Description: Exception logger interface
Class: PHP Generics
Framework for accessing streams, sockets and logs
Author: By
Last change: Update of src/Generics/Logger/ExceptionLogger.php
Date: 3 months ago
Size: 654 bytes
 

Contents

Class file image Download
<?php

/**
 * This file is part of the PHP Generics package.
 *
 * @package Generics
 */
namespace Generics\Logger;

use \
Exception;

/**
 * This interface describes an implemention for a
 * logger which is capable to log exceptions.
 *
 * @author Maik Greubel <greubel@nkey.de>
 */
interface ExceptionLogger
{

   
/**
     * Log an exception
     *
     * The exception will be logged according its severity.
     * ErrorException will be logged as LogLevel::Error
     * RuntimeExcpetion will be logged as LogLevel::
     *
     * @param Exception $ex
     * The exception to log.
     */
   
public function logException(Exception $ex);
}