Renamed param $type of LogTrait::write() to $level.