winston-logs-display

1.0.0 • Public • Published

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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    57
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    57
  • 0.1.1
    84
  • 0.1.0
    0
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i winston-logs-display

Weekly Downloads

102

Version

1.0.0

License

MIT

Unpacked Size

6.47 kB

Total Files

8

Last publish

Collaborators

  • ash-developer