forked from log4js-node/log4js-node
-
Notifications
You must be signed in to change notification settings - Fork 0
Smtp
druciak edited this page Jun 29, 2012
·
4 revisions
Sends logging events using e-mail (various transports). Uses andris9/Nodemailer module.
Options:
-
recipients- comma separated list of email recipients, -
sender- sender of all emails (defaults to transport user), -
subject- subject of all email messages (defaults to first event's message), -
sendInterval- the time in seconds between sending attempts (defaults to 0); all events are buffered and sent in one email during this time; if 0 then every event sends an email -
transport- e-mail transport; see andris9/Nodemailer documentation for list of available transports.
Example configuration:
{ "appenders": [
{
"type": "smtp",
"recipients": "[email protected]",
"sendInterval": 60,
"transport": "SMTP",
"SMTP": {
"host": "smtp.gmail.com",
"secureConnection": true,
"port": 465,
"auth": {
"user": "[email protected]",
"pass": "bar_foo"
}
}
}
] }