@lukstei/dsh-log 0.2.2-rc.5.13 → 0.2.2-rc.5.14
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 +9 -11
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -18,19 +18,17 @@ Routes Cordis logger output to stdout and/or log files, with per-logger severity
|
|
|
18
18
|
<a id="use-this-package"></a>
|
|
19
19
|
## Use this package
|
|
20
20
|
|
|
21
|
-
The shipped [`cordis.patch.yml`](cordis.patch.yml) mounts one `stdout` output
|
|
21
|
+
Install with `dsh plugin --profile <profile> add @lukstei/dsh-log`. The shipped [`cordis.patch.yml`](cordis.patch.yml) mounts `id: file-log` with one `stdout` output (`default: 2`, INFO). To add file output or change levels, override `file-log` in your profile `cordis.patch.yml`:
|
|
22
22
|
|
|
23
23
|
```yaml
|
|
24
|
-
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
filePath: ~/.dsh/cache/approvals.log
|
|
33
|
-
levels: { default: -1, jev-audit: 2 }
|
|
24
|
+
- id: file-log
|
|
25
|
+
config:
|
|
26
|
+
outputs:
|
|
27
|
+
- target: stdout
|
|
28
|
+
levels: { default: 2, jev-audit: -1 }
|
|
29
|
+
- target: file
|
|
30
|
+
filePath: ~/.dsh/cache/approvals.log
|
|
31
|
+
levels: { default: -1, jev-audit: 2 }
|
|
34
32
|
```
|
|
35
33
|
|
|
36
34
|
| Field | Default | Meaning |
|