public function __construct($path = null, $name = 'logs') { parent::__construct($name); $path = $path ?: $this->getLogsFile(); $this->getStorageLogs($path); }