/** * If title is provided we use that for the notification title, otherwise the record level name * * @inheritdoc */ protected function write(array $record) { $title = !empty($record['context']['title']) ? $record['context']['title'] : $record['level_name']; $this->boxcar->push(new Notification($title, $record['message'])); }