How to use the restify-clients.bunyan function in restify-clients

To help you get started, we’ve selected a few restify-clients examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github trentm / jirash / lib / cli / index.js View on Github external
JirashCli.prototype.init = function init(opts, args, callback) {
    var self = this;
    this.opts = opts;

    this.log = bunyan.createLogger({
        name: this.name,
        serializers: restifyClients.bunyan.serializers,
        stream: process.stderr,
        level: 'warn'
    });
    if (opts.verbose) {
        this.log.level('trace');
        this.log.src = true;
        this.showErrStack = true;
    }

    if (opts.version) {
        console.log('jirash', packageJson.version);
        console.log(packageJson.homepage);
        callback(false);
        return;
    }

restify-clients

HttpClient, StringClient, and JsonClient extracted from restify

MIT
Latest version published 2 years ago

Package Health Score

48 / 100
Full package analysis