docs: def should_log_to_file(self):
          """
          Returns:
              bool: As per the spec, should we be logging to a file?
          """
          if not self.file_format:
              return False
          if self.file_location is not None:
              return bool(self.file_location)
          return bool(self.locations)