@conduitplatform/module-tools 0.17.0-alpha.7 → 0.17.0-alpha.9
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.mdx +13 -0
- package/dist/index.cjs +678 -127
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +185 -4
- package/dist/index.d.ts +185 -4
- package/dist/index.esm.js +639 -96
- package/dist/index.esm.js.map +1 -1
- package/package.json +9 -8
package/README.mdx
CHANGED
|
@@ -6,6 +6,19 @@ This library provides a framework to build micro-services in NodeJS that can be
|
|
|
6
6
|
|
|
7
7
|
- run npm build
|
|
8
8
|
|
|
9
|
+
## Logging
|
|
10
|
+
|
|
11
|
+
Modules log to stdout. When `LOKI_URL` is set, the same logs are also shipped to Loki. File logging is on unless `LOG_TO_FILE=false`.
|
|
12
|
+
|
|
13
|
+
| Variable | Default | Description |
|
|
14
|
+
| -------------------- | ----------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
15
|
+
| `LOG_TO_FILE` | unset (on) | Set to `false` to skip file logs. Any other value, or leaving it unset, writes them. |
|
|
16
|
+
| `LOG_FILE_DIR` | `{tmpdir}/conduit-logs` | Directory for `combined-YYYY-MM-DD.log` and `errors-YYYY-MM-DD.log`. It is created when missing. |
|
|
17
|
+
| `LOG_RETENTION_DAYS` | `3` | Days of log files to keep. Older files are deleted. Non-positive or non-integer values use the default. |
|
|
18
|
+
| `LOG_FILE_MAX_SIZE` | `20m` | Max size of each file before a same-day size roll. Accepts `k`, `m`, or `g` suffixes, or a positive byte count. Invalid values use the default. |
|
|
19
|
+
|
|
20
|
+
Files roll once per day and are not gzipped. Metadata in file lines is single-line JSON.
|
|
21
|
+
|
|
9
22
|
## Features ✔️
|
|
10
23
|
|
|
11
24
|
- Service registration & discovery
|