Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

winston-mailer

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

winston-mailer

Winston transport based on mailer. It buffers errors, and packs them in one email if necessary.

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

An email transport based on mailer for winston.

Installation

  $ npm install winston
  $ npm install winston-mailer

Usage

  var winston = require('winston');
  
  //
  // Requiring `winston-mailer` will expose 
  // `winston.transports.Mail`
  //
  require('winston-mailer').Mail;
  
  winston.add(winston.transports.Mail, options);

The Mail transport uses mailer behind the scenes. Options are the following:

  • to: The address(es) you want to send to. [required]
  • from: The 'from' address (default: winston@[server-host-name].com)
  • host: SMTP server hostname (default: localhost)
  • port: SMTP port (default: 587 or 25)
  • username User for server auth
  • password Password for server auth
  • level: Level of messages that this transport should log.
  • silent: Boolean flag indicating whether to suppress output.
  • prefix: String for using in as prefix in the subject.
  • maxBufferItems Max errors that will be buffered (default 100)
  • maxBufferTimeSpan Max miliseconds errors will be buffered (default 60000)

Keywords

winston

FAQs

Package last updated on 10 Jan 2013

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