Jump To …
winston/common.html winston/config/cli-config.html winston/config/npm-config.html winston/config/syslog-config.html winston/config.html winston/exception.html winston/logger.html winston/transports/console.html winston/transports/couchdb.html winston/transports/file.html winston/transports/loggly.html winston/transports/transport.html winston/transports/webhook.html winston/transports.html winston.html

# cli-config.js

¶

    /*
     * cli-config.js: Config that conform to commonly used CLI logging levels.
     *
     * (C) 2010 Charlie Robbins
     * MIT LICENCE
     *
     */

    var cliConfig = exports;

    cliConfig.levels = {
      silly: 0,
      input: 1,
      verbose: 2,
      prompt: 3,
      info: 4,
      data: 5,
      help: 6,
      warn: 7,
      debug: 8,
      error: 9
    };

    cliConfig.colors = {
      silly: 'magenta',
      input: 'grey',
      verbose: 'cyan',
      prompt: 'grey',
      info: 'green',
      data: 'grey',
      help: 'cyan',
      warn: 'yellow',
      debug: 'blue',
      error: 'red'
    };