0.1.0 • Published 8 years ago

winston-email v0.1.0

Weekly downloads
70
License
-
Repository
github
Last release
8 years ago

winston-email

email transport logging for winston using nodemailer

install

$ npm install winston-email

usage

add an email option to your logger

var winston = require('winston');
require('winston-email');

winston.loggers.add('logger', {
  email: {
    from   : 'xxx',
    to     : 'xxx',
    service: 'Gmail',
    auth   : { user: 'xxx', pass: 'xxx'},
    tags   : ['your app'] //optional tags for the subject
  }
  // other transports
});

logger = winston.loggers.get('logger');
logger.info("info msg", {title:'optional title'});

test

FROM=<youremail> TO=<youremail> USER=<youremail> PASS=<your pwd> node test
0.1.0

8 years ago

0.0.11

9 years ago

0.0.10

10 years ago

0.0.9

11 years ago

0.0.8

11 years ago

0.0.7

11 years ago

0.0.6

11 years ago

0.0.5

12 years ago

0.0.4

12 years ago

0.0.3

12 years ago

0.0.2

12 years ago

0.0.1

12 years ago