1<?php declare(strict_types=1); 2 3/* 4 * This file is part of the Monolog package. 5 * 6 * (c) Jordi Boggiano <j.boggiano@seld.be> 7 * 8 * For the full copyright and license information, please view the LICENSE 9 * file that was distributed with this source code. 10 */ 11 12namespace Monolog; 13 14/** 15 * Handler or Processor implementing this interface will be reset when Logger::reset() is called. 16 * 17 * Resetting ends a log cycle gets them back to their initial state. 18 * 19 * Resetting a Handler or a Processor means flushing/cleaning all buffers, resetting internal 20 * state, and getting it back to a state in which it can receive log records again. 21 * 22 * This is useful in case you want to avoid logs leaking between two requests or jobs when you 23 * have a long running process like a worker or an application server serving multiple requests 24 * in one process. 25 * 26 * @author Grégoire Pineau <lyrixx@lyrixx.info> 27 */ 28interface ResettableInterface 29{ 30 /** 31 * @return void 32 */ 33 public function reset(); 34} 35