(self, log_dir)
log_dir can be the path to a log directory, or `None` to avoid
        writing to a file (for `dbt debug`).
log_dir can be the path to a log directory, or `None` to avoid
        writing to a file (for `dbt debug`).
log_dir can be the path to a log directory or None to avoid writing to a file ( for dbt debug ) .
def set_path(self, log_dir):
        """log_dir can be the path to a log directory, or `None` to avoid
        writing to a file (for `dbt debug`).
        """
        if self.disabled:
            return

        assert not self.initialized, 'set_path called after being set'

        if log_dir is None:
            self.disabled = True
            return

        make_log_dir_if_missing(log_dir)
        log_path = os.path.join(log_dir, 'dbt.log.legacy')  # TODO hack for now
        self._super_init(log_path)
        self._replay_buffered()
        self._log_path = log_path
def set_path ( self , log_dir ) : if self . disabled : return assert not self . initialized , 'set_path called after being set' if log_dir is None : self . disabled = True return make_log_dir_if_missing ( log_dir ) log_path = os . path . join ( log_dir , 'dbt.log.legacy' ) # TODO hack for now self . _super_init ( log_path ) self . _replay_buffered ( ) self . _log_path = log_path