Skip to content

Allow logging to be tuned #92

@mojavelinux

Description

@mojavelinux

This library can be used in an application based on vinyl streams, outside of the context of Gulp (see below). In this context, the logging is a nuisance. Allow the logging to be tuned either globally or via the constructor (whichever makes more sense). If this is just a matter of documentation, simply add instructions to the README that explain how to control and tune the logging.

const GulpSSH = require('gulp-ssh')
const vfs = require('vinyl-fs')

;(async () => {
  const gulpSSH = new GulpSSH({
    ignoreErrors: false,
    sshConfig: { username: process.env.USER, agent: process.env.SSH_AUTH_SOCK }
  })
  await new Promise((resolve, reject) => {
    vfs
      .src('*.zip')
      .pipe(gulpSSH.dest('/tmp'))
      .on('error', reject)
      .on('finish', resolve)
  })
})()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions