public function dumpTo(LoggerInterface $logger)
    {
        if (empty($this->sessionLog)) {
            return $this;
        }

        $logger->write(new LogRecord(null, "=== Detailed session log dump begin ==================", null));
        foreach ($this->sessionLog as $record) {
            $logger->write($record); // historical log dumped with actual event times
        }
        $logger->write(new LogRecord(null, "=== Detailed session log dump end ====================", null));

        return $this;
    }
public function dumpTo(LoggerInterface $logger)
    {
        if (empty($this->sessionLog)) {
            return $this;
        }

        $logger->write(new LogRecord(null, "=== Detailed session log dump begin ==================", null));
        foreach ($this->sessionLog as $record) {
            $logger->write($record); // historical log dumped with actual event times
        }
        $logger->write(new LogRecord(null, "=== Detailed session log dump end ====================", null));

        return $this;
    }
public function dumpTo ( LoggerInterface $ logger ) { if ( empty ( $ this -> sessionLog ) ) { return $ this ; } $ logger -> write ( new LogRecord ( null , "=== Detailed session log dump begin ==================" , null ) ) ; foreach ( $ this -> sessionLog as $ record ) { $ logger -> write ( $ record ) ; // historical log dumped with actual event times } $ logger -> write ( new LogRecord ( null , "=== Detailed session log dump end ====================" , null ) ) ; return $ this ; }
Dump session log to specified logger
@param LoggerInterface $logger
@return $this
Dump session log to specified logger