@ddd-ts-kit/winston 0.83.3 → 0.84.0
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 +3 -3
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:ab7605c80e1a9d8d -->
|
|
3
3
|
|
|
4
4
|
# @ddd-ts-kit/winston
|
|
5
5
|
|
|
@@ -47,7 +47,7 @@ export function createLogger(scope: ExecutionScope, settings: LogSettings): Wins
|
|
|
47
47
|
|
|
48
48
|
```ts
|
|
49
49
|
// main.ts
|
|
50
|
-
import { tracing } from '@/platform/tracing'; // en premier
|
|
50
|
+
import { tracing } from '@/platform/observability/tracing'; // en premier
|
|
51
51
|
import { createLogger } from '@/platform/observability/create-logger';
|
|
52
52
|
import { AsyncLocalStorageExecutionScope } from '@ddd-ts-kit/kernel';
|
|
53
53
|
import { createApplication, kernelModule } from '@ddd-ts-kit/di';
|
|
@@ -69,7 +69,7 @@ async function shutdown(): Promise<void> {
|
|
|
69
69
|
|
|
70
70
|
`init --logger winston` écrit ce `create-logger.ts` (il renvoie un `NoopLogger` quand il ne
|
|
71
71
|
reçoit aucun réglage : c'est ainsi que les outils et les tests restent silencieux) ;
|
|
72
|
-
`platform/lay-foundations.ts` l'appelle une fois et `composeApplication` passe le *logger* à
|
|
72
|
+
`platform/composition/lay-foundations.ts` l'appelle une fois et `composeApplication` passe le *logger* à
|
|
73
73
|
`kernelModule({ logger })`.
|
|
74
74
|
|
|
75
75
|
Une ligne de l'application, telle qu'elle est écrite :
|
package/README.md
CHANGED
|
@@ -44,7 +44,7 @@ export function createLogger(scope: ExecutionScope, settings: LogSettings): Wins
|
|
|
44
44
|
|
|
45
45
|
```ts
|
|
46
46
|
// main.ts
|
|
47
|
-
import { tracing } from '@/platform/tracing'; // first
|
|
47
|
+
import { tracing } from '@/platform/observability/tracing'; // first
|
|
48
48
|
import { createLogger } from '@/platform/observability/create-logger';
|
|
49
49
|
import { AsyncLocalStorageExecutionScope } from '@ddd-ts-kit/kernel';
|
|
50
50
|
import { createApplication, kernelModule } from '@ddd-ts-kit/di';
|
|
@@ -65,7 +65,7 @@ async function shutdown(): Promise<void> {
|
|
|
65
65
|
```
|
|
66
66
|
|
|
67
67
|
`init --logger winston` writes this `create-logger.ts` (it answers a `NoopLogger` when given no
|
|
68
|
-
settings, which is how the tools and the tests stay silent); `platform/lay-foundations.ts`
|
|
68
|
+
settings, which is how the tools and the tests stay silent); `platform/composition/lay-foundations.ts`
|
|
69
69
|
calls it once and `composeApplication` hands the logger to `kernelModule({ logger })`.
|
|
70
70
|
|
|
71
71
|
One line of the application, as it is written:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ddd-ts-kit/winston",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.84.0",
|
|
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",
|
|
@@ -37,10 +37,10 @@
|
|
|
37
37
|
"dist"
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@ddd-ts-kit/kernel": "0.
|
|
40
|
+
"@ddd-ts-kit/kernel": "0.84.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@ddd-ts-kit/testing": "0.
|
|
43
|
+
"@ddd-ts-kit/testing": "0.84.0",
|
|
44
44
|
"winston": "^3.19.0"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|