1 //Note that smtp appender needs nodemailer to work.
2 //If you haven't got nodemailer installed, you'll get cryptic
3 //"cannot find module" errors when using the smtp appender
4 var log4js = require('../lib/log4js')
16 "recipients": "logfilerecipient@logging.com",
20 "host": "smtp.gmail.com",
21 "secureConnection": true,
24 "user": "someone@gmail",
25 "pass": "********************"
33 log = log4js.getLogger("test");
34 logmailer = log4js.getLogger("mailer");
36 function doTheLogging(x) {
37 log.info("Logging something %d", x);
38 logmailer.info("Logging something %d", x);
41 for ( ; i < 500; i++) {