original_string: public function reset(): void
      {
          foreach ($this->handlers as $handler) {
              if ($handler instanceof ResettableInterface) {
                  $handler->reset();
              }
          }
  
          foreach ($this->processors as $processor) {
              if ($processor instanceof ResettableInterface) {
                  $processor->reset();
              }
          }
      }
code: public function reset(): void
      {
          foreach ($this->handlers as $handler) {
              if ($handler instanceof ResettableInterface) {
                  $handler->reset();
              }
          }
  
          foreach ($this->processors as $processor) {
              if ($processor instanceof ResettableInterface) {
                  $processor->reset();
              }
          }
      }
code_tokens: public function reset ( ) : void { foreach ( $ this -> handlers as $ handler ) { if ( $ handler instanceof ResettableInterface ) { $ handler -> reset ( ) ; } } foreach ( $ this -> processors as $ processor ) { if ( $ processor instanceof ResettableInterface ) { $ processor -> reset ( ) ; } } }
docstring: Ends a log cycle and resets all handlers and processors to their initial state.
  
  Resetting a Handler or a Processor means flushing/cleaning all buffers, resetting internal
  state, and getting it back to a state in which it can receive log records again.
  
  This is useful in case you want to avoid logs leaking between two requests or jobs when you
  have a long running process like a worker or an application server serving multiple requests
  in one process.
docstring_tokens: Ends a log cycle and resets all handlers and processors to their initial state .