records[] = [ 'level' => $record['level'], 'message' => $record['message'], 'context' => $record['context'] ]; return false; } /** * Remove and return the accumulated log entries * * @return array */ public function flush() { $records = $this->records; $this->records = []; return $records; } }