<?php/* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */namespaceSymfony\Component\Debug;usePsr\Log\AbstractLogger;/** * A buffering logger that stacks logs for later. * * @author Nicolas Grekas <p@tchwork.com> */classBufferingLoggerextendsAbstractLogger{private$logs=array();publicfunctionlog($level,$message,array$context=array()){$this->logs[]=array($level,$message,$context);}publicfunctioncleanLogs(){$logs=$this->logs;$this->logs=array();return$logs;}}