1.0.0 • Published 8 years ago

winston-node-monitor-ui v1.0.0

Weekly downloads
6
License
MIT
Repository
github
Last release
8 years ago

winston-node-monitor-ui

Winston log transport for node-monitor-ui. Allows you to stream the logs to the dashboard.

Installation

npm install winston-node-monitor-ui --save

Usage

var winston = require('winston');
require('winston-node-monitor-ui');

winston.add(winston.transports.NodeMonitorUI, {
    port: 3001,
    level: 'info'
    });
  • port is the http port on which the ui interface will be served. Defaults to 3001.
  • level is the log level for winston.

    Note: There is an optional config field host which defaults to 'localhost'. This is present for future versions when node-monitor-ui supports cluster/multiple node processess.