PHP Classes

File: docs/files/LoggerAggregatorInterfrace.php.txt

Recommend this page to a friend!
  Classes of Kiril Savchev   ITE Logger   docs/files/LoggerAggregatorInterfrace.php.txt   Download  
File: docs/files/LoggerAggregatorInterfrace.php.txt
Role: Documentation
Content type: text/plain
Description: Documentation
Class: ITE Logger
Log messages to different storage PSR-3 compliant
Author: By
Last change:
Date: 7 years ago
Size: 1,203 bytes
 

Contents

Class file image Download
<?php /** * LoggerAggregatorInterfrace file * * Copyright (c) 2016, Kiril Savchev * All rights reserved. * * @category Libs * @package Logger * * @author Kiril Savchev <k.savchev@gmail.com> * * @license https://opensource.org/licenses/BSD-3-Clause BSD 3 License * @link http://ifthenelse.info */ namespace Ite\Logger; use Psr\Log\LoggerInterface; /** * LoggerAggragator interface * * Defines the LoggerAggregator class behaviour, making mandatory the concrete * class to be a PSR Logger by extending Psr\Log\LoggerInterface and adds * methods to attach and remove nested loggers. * * @uses psr\log * * @version 1.0 * * @author Kiril Savchev <k.savchev@gmail> */ interface LoggerAggregatorInterfrace extends LoggerInterface { /** * Add logger * * @param LoggerInterface $logger * @param mixed $level [Optional] Level the logger is attached to. Default '*' - to all levels */ public function attachLogger(LoggerInterface $logger, $level = '*'); /** * Remove logger * * @param LoggerInterface $logger */ public function detachLogger(LoggerInterface $logger); }