winston-logs-display
Node.js module for express, main purpose of that module is make easy access to winston logs
Last updated 2 years ago by ash-developer .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install winston-logs-display 
SYNC missed versions from official npm registry.

winston-logs-display

Node.js module for express, main purpose of that module is make easy access to winston logs.

To install that module use command

npm install --save-dev winston-logs-display

And there is simple example of using it

const app = require('express')();
const winston = require('winston');

const logger = new (winston.Logger)({
    transports: [
        new (winston.transports.File)({
            filename: 'winston.log'
        })
    ]
});

require('./app.js')(app, logger);

app.listen(3000, function () {
    logger.log('info', 'server started on port 3000');
});

After that you can see all logs by url http://yourhost:port/logs.

Current Tags

  • 1.0.0                                ...           latest (2 years ago)

5 Versions

  • 1.0.0                                ...           2 years ago
  • 0.1.1                                ...           5 years ago
  • 0.1.0                                ...           5 years ago
  • 0.0.2                                ...           5 years ago
  • 0.0.1                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 11
This Month 10
Last Day 1
Last Week 18
Last Month 50
Dependencies (6)
Dev Dependencies (0)
None

Copyright 2014 - 2017 © taobao.org |