src/Listeners/ResetLoggerListener.php
/**
     * Handle the event.
     *
     * Deletes the tier prices for all the products, which have been touched by the import,
     * and which were not part of the tier price import.
     *
     * @param \League\Event\EventInterface $event The event that triggered the listener
     *
     * @return void
     */
Handle the event.
Deletes the tier prices for all the products, which have been touched by the import,
and which were not part of the tier price import.

@param \League\Event\EventInterface $event The event that triggered the listener

@return void
Handle the event . Deletes the tier prices for all the products which have been touched by the import and which were not part of the tier price import . @param \ League \ Event \ EventInterface $event The event that triggered the listener @return void
public function handle(EventInterface $event)
    {
        foreach ($this->getSystemLoggers() as $systemLogger) {
            foreach ($systemLogger->getHandlers() as $handler) {
                if ($handler instanceof ResetAwareHandlerInterface) {
                    $handler->reset();
                }
            }
        }
    }
public function handle ( EventInterface $ event ) { foreach ( $ this -> getSystemLoggers ( ) as $ systemLogger ) { foreach ( $ systemLogger -> getHandlers ( ) as $ handler ) { if ( $ handler instanceof ResetAwareHandlerInterface ) { $ handler -> reset ( ) ; } } } }
Handle the event.
Handle the event .
// iterate over the system loggers and reset the handlers