-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtest-config.js
29 lines (26 loc) · 924 Bytes
/
test-config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
let { logmailer, Recipient, Chapter, StandardChapters } = require("./index");
let chapters = {
summary: StandardChapters.Summary,
ffOnly: new Chapter("Firefighter only", false, "DeepPink"),
managerOnly: new Chapter("Manager only", false, "DarkSlateBlue"),
errors: StandardChapters.Errors,
logs: StandardChapters.Logs
}
logmailer.create({
appName: "My App",
mailAlias: "[email protected]",
client: {
host: "smtp.googlemail.com",
user: "user",
password: "password",
ssl: true
},
recipients: [
"[email protected]", // receives everything
new Recipient("[email protected]", [chapters.managerOnly], [chapters.managerOnly]),
new Recipient("[email protected]", [chapters.ffOnly], [chapters.summary, chapters.ffOnly, chapters.errors]),
],
chapters: chapters
})
module.exports.logmail = chapters;
module.exports.logmailer = logmailer;