@ddd-ts-kit/winston 0.113.1 → 0.114.1
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.fr.md +3 -3
- package/README.md +2 -2
- package/package.json +6 -6
package/README.fr.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
[English](README.md) · **Français**
|
|
2
|
-
<!-- translation-of: README.md sha256:
|
|
2
|
+
<!-- translation-of: README.md sha256:db0dfa2f49b8977b -->
|
|
3
3
|
|
|
4
4
|
# @ddd-ts-kit/winston
|
|
5
5
|
|
|
@@ -79,7 +79,7 @@ Une ligne de l'application, telle qu'elle est écrite :
|
|
|
79
79
|
{"actorId":"user-1","context":"shipping","correlationId":"9f2c","environment":"production","level":"info","message":"order shipped","origin":"http","service":"shop-api","span_id":"00f067aa0ba902b7","tenantId":"acme","time":"2026-03-01T10:00:00.000Z","trace_id":"4bf92f3577b34da6a3ce929d0e0e4736"}
|
|
80
80
|
```
|
|
81
81
|
|
|
82
|
-
 les clés que personne n'a données, redactCredentials masque les clés de secret, isoTime écrit time, json ou la ligne lisible sérialise ; chaque transport écrit la ligne : la console par défaut, ou les fichiers, syslog ou le flux que vous donnez](https://raw.githubusercontent.com/ddd-ts-kit/ddd-ts-kit/main/docs/assets/diagrams/winston-path-of-a-line.fr.svg)
|
|
83
83
|
|
|
84
84
|
**Corrélation.** `fields` est lu à chaque ligne écrite, par un format winston : aucun point
|
|
85
85
|
d'appel ne passe d'identifiant. `traceLogFields(scope)` renvoie les identifiants de trace et de
|
|
@@ -93,7 +93,7 @@ l'emportent sur `fields` : le format ne remplit que les clés que personne n'a d
|
|
|
93
93
|
un enfant) : ne liez donc pas dans un enfant une clé que `fields` renvoie si le *logger* peut
|
|
94
94
|
être remplacé.
|
|
95
95
|
|
|
96
|
-
, puis la ligne, qui l'emporte ; avec winston, fields(), puis les enfants, puis la ligne, puis service, environment et base, qui l'emportent](https://raw.githubusercontent.com/ddd-ts-kit/ddd-ts-kit/main/docs/assets/diagrams/pino-which-value-wins.fr.svg)
|
|
97
97
|
|
|
98
98
|
**Une instance à vous.** Le projet qui configure déjà winston continue de le faire, et prend les
|
|
99
99
|
formats qu'il veut :
|
package/README.md
CHANGED
|
@@ -75,7 +75,7 @@ One line of the application, as it is written:
|
|
|
75
75
|
{"actorId":"user-1","context":"shipping","correlationId":"9f2c","environment":"production","level":"info","message":"order shipped","origin":"http","service":"shop-api","span_id":"00f067aa0ba902b7","tenantId":"acme","time":"2026-03-01T10:00:00.000Z","trace_id":"4bf92f3577b34da6a3ce929d0e0e4736"}
|
|
76
76
|
```
|
|
77
77
|
|
|
78
|
-
, redactCredentials hides the credential keys, isoTime writes time, json or the pretty line serializes; each transport writes the line: the console by default, or the files, syslog or stream you give](https://raw.githubusercontent.com/ddd-ts-kit/ddd-ts-kit/main/docs/assets/diagrams/winston-path-of-a-line.svg)
|
|
79
79
|
|
|
80
80
|
**Correlation.** `fields` is read at each line that is written, by a winston format: no call
|
|
81
81
|
site passes an id. `traceLogFields(scope)` answers the trace and span ids inside a span, and
|
|
@@ -87,7 +87,7 @@ format only fills the keys nobody gave. `StdoutLogger` and `@ddd-ts-kit/pino` di
|
|
|
87
87
|
second step (there `fields` win over a child), so do not bind in a child a key that `fields`
|
|
88
88
|
answers if the logger may be swapped.
|
|
89
89
|
|
|
90
|
-
, then the line, which wins; with winston, fields(), then the children, then the line, then service, environment and base, which win](https://raw.githubusercontent.com/ddd-ts-kit/ddd-ts-kit/main/docs/assets/diagrams/pino-which-value-wins.svg)
|
|
91
91
|
|
|
92
92
|
**An instance of your own.** The project that already configures winston keeps doing so, and
|
|
93
93
|
takes the formats it wants:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ddd-ts-kit/winston",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.114.1",
|
|
4
4
|
"description": "Adapter of the kernel Logger port on winston, with trace and execution correlation on every line.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ddd",
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
"license": "MIT",
|
|
17
17
|
"repository": {
|
|
18
18
|
"type": "git",
|
|
19
|
-
"url": "git+https://github.com/
|
|
19
|
+
"url": "git+https://github.com/ddd-ts-kit/ddd-ts-kit.git",
|
|
20
20
|
"directory": "packages/winston"
|
|
21
21
|
},
|
|
22
|
-
"homepage": "https://
|
|
23
|
-
"bugs": "https://github.com/
|
|
22
|
+
"homepage": "https://ddd-ts-kit.github.io/ddd-ts-kit/packages/winston/",
|
|
23
|
+
"bugs": "https://github.com/ddd-ts-kit/ddd-ts-kit/issues",
|
|
24
24
|
"publishConfig": {
|
|
25
25
|
"access": "public",
|
|
26
26
|
"provenance": true
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
"dist"
|
|
41
41
|
],
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@ddd-ts-kit/kernel": "0.
|
|
43
|
+
"@ddd-ts-kit/kernel": "0.114.1"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@ddd-ts-kit/testing": "0.
|
|
46
|
+
"@ddd-ts-kit/testing": "0.114.1",
|
|
47
47
|
"winston": "^3.19.0"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|