def METHOD_NAME(self) -> None:
    path = datetime.today().strftime(_path(ctx.options.save_stream_file))
    if self.current_path == path:
        return
    if self.stream:
        self.stream.fo.close()
        self.stream = None
    new_log_file = Path(path)
    new_log_file.parent.mkdir(parents=True, exist_ok=True)
    f = new_log_file.open(_mode(ctx.options.save_stream_file))
    self.stream = io.FilteredFlowWriter(f, self.filt)
    self.current_path = path