Socket
Socket
Sign inDemoInstall

winston-logs-display

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

winston-logs-display

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


Version published
Weekly downloads
110
increased by20.88%
Maintainers
1
Weekly downloads
 
Created

Readme

Source

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.

Keywords

FAQs

Package last updated on 22 Apr 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc