code: public function export(Defender $defender)
      {
          $content = json_encode($defender->dangerFiles);
          $name = 'defender/defender-'.$this->date.'.json';
  
          if ($this->storage->exists($name)) {
              $this->storage->delete($name);
          }
  
          $this->storage->put($name, $content);
      }
docs: Create log file.
  
  @param Defender $defender