@webimpian/zonemta-log-central 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/index.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
|
|
6
6
|
[ZoneMTA](https://github.com/zone-eu/zone-mta) plugin that ships mail delivery logs to a [Log Central](https://log.dev-aplikasiniaga.com) server: every queued, delivered, deferred, and bounced message becomes a searchable log entry with message-id, recipient, sending zone, and the remote MX response.
|
|
7
7
|
|
|
8
|
-
Built on [`@webimpian/log-central
|
|
8
|
+
Built on [`@webimpian/node-log-central`](https://www.npmjs.com/package/@webimpian/node-log-central) — batched background delivery, capped backoff, and bounded memory, so a Log Central outage can never disrupt mail flow. Hook handlers swallow their own failures and always advance ZoneMTA's plugin chain.
|
|
9
9
|
|
|
10
10
|
## Installation
|
|
11
11
|
|
|
12
12
|
Inside your ZoneMTA application directory:
|
|
13
13
|
|
|
14
|
-
```
|
|
14
|
+
```
|
|
15
15
|
npm install @webimpian/zonemta-log-central
|
|
16
16
|
```
|
|
17
17
|
|
|
@@ -30,7 +30,7 @@ channel="zonemta"
|
|
|
30
30
|
|
|
31
31
|
Alternatively, if you keep local plugins in a `plugins/` folder, drop in a one-line shim as `plugins/log-central.js`:
|
|
32
32
|
|
|
33
|
-
```
|
|
33
|
+
```
|
|
34
34
|
module.exports = require('@webimpian/zonemta-log-central');
|
|
35
35
|
```
|
|
36
36
|
|
|
@@ -64,14 +64,14 @@ raw=true
|
|
|
64
64
|
| `environment` | `production` | Environment tag on every entry |
|
|
65
65
|
| `channel` | `zonemta` | Log channel shown in the Log Central viewer |
|
|
66
66
|
| `hostname` | `os.hostname()` | Hostname tag on every entry |
|
|
67
|
-
| `batchSize` / `flushInterval` / `maxQueue` | see client | Passed through to [`@webimpian/log-central
|
|
67
|
+
| `batchSize` / `flushInterval` / `maxQueue` | see client | Passed through to [`@webimpian/node-log-central`](https://www.npmjs.com/package/@webimpian/node-log-central) |
|
|
68
68
|
| `events` | all on, `raw` off | Toggle individual hooks (see above) |
|
|
69
69
|
|
|
70
70
|
If `url`, `token`, or `app` is missing, the plugin logs a warning through ZoneMTA's logger and disables itself — it never prevents ZoneMTA from starting.
|
|
71
71
|
|
|
72
72
|
## Testing
|
|
73
73
|
|
|
74
|
-
```
|
|
74
|
+
```
|
|
75
75
|
npm install
|
|
76
76
|
npm test
|
|
77
77
|
```
|
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webimpian/zonemta-log-central",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "ZoneMTA plugin that ships mail delivery logs (queued, delivered, deferred, bounced) to a Log Central server.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"zonemta",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"README.md"
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@webimpian/log-central
|
|
27
|
+
"@webimpian/node-log-central": "^1.0.2"
|
|
28
28
|
},
|
|
29
29
|
"scripts": {
|
|
30
30
|
"test": "node --test"
|