0.1.1 • Published 7 years ago

winston-logs-display-with-pagination v0.1.1

Weekly downloads
5
License
MIT
Repository
github
Last release
7 years ago

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

var app = require('express')(),
    winston = require('winston'),
    logger;

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

require('winston-logs-display')(app, logger);

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

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