@nwire/logger 0.7.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/LICENSE +21 -0
- package/README.md +58 -0
- package/dist/logger-iface.d.ts +12 -0
- package/dist/logger-iface.d.ts.map +1 -0
- package/dist/logger-iface.js +12 -0
- package/dist/logger-iface.js.map +1 -0
- package/dist/logger.d.ts +52 -0
- package/dist/logger.d.ts.map +1 -0
- package/dist/logger.js +75 -0
- package/dist/logger.js.map +1 -0
- package/package.json +39 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Alex Gefter / 200apps Ltd.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# @nwire/logger
|
|
2
|
+
|
|
3
|
+
> Logger contract — interface every Nwire layer logs against, with Noop + Console defaults.
|
|
4
|
+
|
|
5
|
+
## What it is
|
|
6
|
+
|
|
7
|
+
A tiny `Logger` interface (`debug` / `info` / `warn` / `error` + `child(bindings)`) so framework code can log without binding to a specific implementation. Ships a silent `NoopLogger` (test default) and a JSON-line `ConsoleLogger` (dev default). Production wires plug in `@nwire/logger-pino` or any structured adapter that conforms.
|
|
8
|
+
|
|
9
|
+
## Install
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
pnpm add @nwire/logger
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Standalone use
|
|
16
|
+
|
|
17
|
+
For developers building a library that wants a structured-logging contract without forcing pino/winston on consumers. Code logs against `Logger`; callers inject whichever adapter they want.
|
|
18
|
+
|
|
19
|
+
```ts
|
|
20
|
+
import { ConsoleLogger, type Logger } from "@nwire/logger";
|
|
21
|
+
|
|
22
|
+
class CourseService {
|
|
23
|
+
constructor(private log: Logger) {}
|
|
24
|
+
async enrol(studentId: string, courseId: string) {
|
|
25
|
+
this.log.info({ studentId, courseId }, "enrolling");
|
|
26
|
+
// …
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
const svc = new CourseService(new ConsoleLogger({ level: "info" }));
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Within nwire-app
|
|
34
|
+
|
|
35
|
+
For developers using this package as part of the Nwire stack. `ctx.logger` is already attached per request with envelope ids (`correlationId`, `causationId`, `tenant`, `userId`) bound. Touch this package directly only when implementing a custom adapter.
|
|
36
|
+
|
|
37
|
+
```ts
|
|
38
|
+
import { loggerForEnvelope, ConsoleLogger } from "@nwire/logger";
|
|
39
|
+
import { seedEnvelope } from "@nwire/envelope";
|
|
40
|
+
|
|
41
|
+
const root = new ConsoleLogger({ level: "info" });
|
|
42
|
+
const env = seedEnvelope({ source: "http", tenant: "acme" });
|
|
43
|
+
const log = loggerForEnvelope(root, env);
|
|
44
|
+
log.info({ courseId: "c-1" }, "course requested");
|
|
45
|
+
// → {"level":"info","correlationId":"...","tenant":"acme","courseId":"c-1","msg":"course requested"}
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## API
|
|
49
|
+
|
|
50
|
+
- `Logger` — interface every adapter implements.
|
|
51
|
+
- `NoopLogger` — silent default; use in tests.
|
|
52
|
+
- `ConsoleLogger` — JSON-line stdout; use in dev.
|
|
53
|
+
- `loggerForEnvelope(parent, envelope)` — derives a child logger with envelope ids pre-bound.
|
|
54
|
+
|
|
55
|
+
## See also
|
|
56
|
+
|
|
57
|
+
- [Architecture sketch §05 — Foundation tier](../../architecture-sketch.html#packages)
|
|
58
|
+
- Sibling packages: [@nwire/logger-pino](../nwire-logger-pino), [@nwire/envelope](../nwire-envelope)
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@nwire/logger` — Logger contract + Noop + Console defaults.
|
|
3
|
+
*
|
|
4
|
+
* Logger interface — debug/info/warn/error + child(bindings)
|
|
5
|
+
* NoopLogger — silent default
|
|
6
|
+
* ConsoleLogger — JSON-line stdout, dev-friendly
|
|
7
|
+
* loggerForEnvelope(parent, envelope) — auto-attaches envelope ids
|
|
8
|
+
*
|
|
9
|
+
* Production deployments use a structured adapter like `@nwire/logger-pino`.
|
|
10
|
+
*/
|
|
11
|
+
export { NoopLogger, ConsoleLogger, loggerForEnvelope, type Logger } from "./logger.js";
|
|
12
|
+
//# sourceMappingURL=logger-iface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger-iface.d.ts","sourceRoot":"","sources":["../src/logger-iface.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,iBAAiB,EAAE,KAAK,MAAM,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@nwire/logger` — Logger contract + Noop + Console defaults.
|
|
3
|
+
*
|
|
4
|
+
* Logger interface — debug/info/warn/error + child(bindings)
|
|
5
|
+
* NoopLogger — silent default
|
|
6
|
+
* ConsoleLogger — JSON-line stdout, dev-friendly
|
|
7
|
+
* loggerForEnvelope(parent, envelope) — auto-attaches envelope ids
|
|
8
|
+
*
|
|
9
|
+
* Production deployments use a structured adapter like `@nwire/logger-pino`.
|
|
10
|
+
*/
|
|
11
|
+
export { NoopLogger, ConsoleLogger, loggerForEnvelope } from "./logger.js";
|
|
12
|
+
//# sourceMappingURL=logger-iface.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger-iface.js","sourceRoot":"","sources":["../src/logger-iface.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,iBAAiB,EAAe,MAAM,UAAU,CAAC"}
|
package/dist/logger.d.ts
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Minimal `Logger` contract for the runtime.
|
|
3
|
+
*
|
|
4
|
+
* The framework auto-attaches envelope ids (`correlationId`, `causationId`,
|
|
5
|
+
* `messageId`, `tenant`, `userId`) to every log call so domain code never
|
|
6
|
+
* threads them manually. The contract is small on purpose — wires plug in
|
|
7
|
+
* pino, winston, console, or a no-op.
|
|
8
|
+
*
|
|
9
|
+
* The runtime calls the logger at well-defined checkpoints (dispatch start,
|
|
10
|
+
* handler error, retry, DLQ, projection lag) — all from a `ctx.logger` that
|
|
11
|
+
* already has the envelope baked in.
|
|
12
|
+
*/
|
|
13
|
+
import type { MessageEnvelope } from "@nwire/envelope";
|
|
14
|
+
export interface Logger {
|
|
15
|
+
debug(message: string, fields?: Record<string, unknown>): void;
|
|
16
|
+
info(message: string, fields?: Record<string, unknown>): void;
|
|
17
|
+
warn(message: string, fields?: Record<string, unknown>): void;
|
|
18
|
+
error(message: string, fields?: Record<string, unknown>): void;
|
|
19
|
+
/** Return a child logger with additional fields baked in. */
|
|
20
|
+
child(bindings: Record<string, unknown>): Logger;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* No-op logger. Default in `createApp` so the framework never demands a
|
|
24
|
+
* logger; production wires pass in a real one.
|
|
25
|
+
*/
|
|
26
|
+
export declare class NoopLogger implements Logger {
|
|
27
|
+
debug(): void;
|
|
28
|
+
info(): void;
|
|
29
|
+
warn(): void;
|
|
30
|
+
error(): void;
|
|
31
|
+
child(): Logger;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Console logger. Simple JSON-line output for dev. Production should pass a
|
|
35
|
+
* structured logger (pino) instead.
|
|
36
|
+
*/
|
|
37
|
+
export declare class ConsoleLogger implements Logger {
|
|
38
|
+
private readonly bindings;
|
|
39
|
+
constructor(bindings?: Record<string, unknown>);
|
|
40
|
+
private write;
|
|
41
|
+
debug(m: string, f?: Record<string, unknown>): void;
|
|
42
|
+
info(m: string, f?: Record<string, unknown>): void;
|
|
43
|
+
warn(m: string, f?: Record<string, unknown>): void;
|
|
44
|
+
error(m: string, f?: Record<string, unknown>): void;
|
|
45
|
+
child(bindings: Record<string, unknown>): Logger;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Build a child logger with envelope ids baked in. Used by the runtime to
|
|
49
|
+
* scope every handler/reaction's logger to its own envelope automatically.
|
|
50
|
+
*/
|
|
51
|
+
export declare function loggerForEnvelope(parent: Logger, envelope: MessageEnvelope): Logger;
|
|
52
|
+
//# sourceMappingURL=logger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../src/logger.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAEvD,MAAM,WAA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IAAI;IAGlD,KAAK,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IAGnD,KAAK,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM;CAGjD;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,eAAe,GAAG,MAAM,CAQnF"}
|
package/dist/logger.js
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Minimal `Logger` contract for the runtime.
|
|
3
|
+
*
|
|
4
|
+
* The framework auto-attaches envelope ids (`correlationId`, `causationId`,
|
|
5
|
+
* `messageId`, `tenant`, `userId`) to every log call so domain code never
|
|
6
|
+
* threads them manually. The contract is small on purpose — wires plug in
|
|
7
|
+
* pino, winston, console, or a no-op.
|
|
8
|
+
*
|
|
9
|
+
* The runtime calls the logger at well-defined checkpoints (dispatch start,
|
|
10
|
+
* handler error, retry, DLQ, projection lag) — all from a `ctx.logger` that
|
|
11
|
+
* already has the envelope baked in.
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* No-op logger. Default in `createApp` so the framework never demands a
|
|
15
|
+
* logger; production wires pass in a real one.
|
|
16
|
+
*/
|
|
17
|
+
export class NoopLogger {
|
|
18
|
+
debug() { }
|
|
19
|
+
info() { }
|
|
20
|
+
warn() { }
|
|
21
|
+
error() { }
|
|
22
|
+
child() {
|
|
23
|
+
return this;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Console logger. Simple JSON-line output for dev. Production should pass a
|
|
28
|
+
* structured logger (pino) instead.
|
|
29
|
+
*/
|
|
30
|
+
export class ConsoleLogger {
|
|
31
|
+
bindings;
|
|
32
|
+
constructor(bindings = {}) {
|
|
33
|
+
this.bindings = bindings;
|
|
34
|
+
}
|
|
35
|
+
write(level, message, fields) {
|
|
36
|
+
const line = {
|
|
37
|
+
level,
|
|
38
|
+
message,
|
|
39
|
+
ts: new Date().toISOString(),
|
|
40
|
+
...this.bindings,
|
|
41
|
+
...(fields ?? {}),
|
|
42
|
+
};
|
|
43
|
+
// eslint-disable-next-line no-console
|
|
44
|
+
console.log(JSON.stringify(line));
|
|
45
|
+
}
|
|
46
|
+
debug(m, f) {
|
|
47
|
+
this.write("debug", m, f);
|
|
48
|
+
}
|
|
49
|
+
info(m, f) {
|
|
50
|
+
this.write("info", m, f);
|
|
51
|
+
}
|
|
52
|
+
warn(m, f) {
|
|
53
|
+
this.write("warn", m, f);
|
|
54
|
+
}
|
|
55
|
+
error(m, f) {
|
|
56
|
+
this.write("error", m, f);
|
|
57
|
+
}
|
|
58
|
+
child(bindings) {
|
|
59
|
+
return new ConsoleLogger({ ...this.bindings, ...bindings });
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Build a child logger with envelope ids baked in. Used by the runtime to
|
|
64
|
+
* scope every handler/reaction's logger to its own envelope automatically.
|
|
65
|
+
*/
|
|
66
|
+
export function loggerForEnvelope(parent, envelope) {
|
|
67
|
+
return parent.child({
|
|
68
|
+
messageId: envelope.messageId,
|
|
69
|
+
correlationId: envelope.correlationId,
|
|
70
|
+
causationId: envelope.causationId,
|
|
71
|
+
...(envelope.tenant ? { tenant: envelope.tenant } : {}),
|
|
72
|
+
...(envelope.userId ? { userId: envelope.userId } : {}),
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
//# sourceMappingURL=logger.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.js","sourceRoot":"","sources":["../src/logger.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAaH;;;GAGG;AACH,MAAM,OAAO,UAAU;IACrB,KAAK,KAAU,CAAC;IAChB,IAAI,KAAU,CAAC;IACf,IAAI,KAAU,CAAC;IACf,KAAK,KAAU,CAAC;IACh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QAClB,SAAS,EAAE,QAAQ,CAAC,SAAS;QAC7B,aAAa,EAAE,QAAQ,CAAC,aAAa;QACrC,WAAW,EAAE,QAAQ,CAAC,WAAW;QACjC,GAAG,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACvD,GAAG,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KACxD,CAAC,CAAC;AACL,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@nwire/logger",
|
|
3
|
+
"version": "0.7.0",
|
|
4
|
+
"description": "Nwire — Logger contract + Noop + Console defaults. Production adapters: @nwire/logger-pino, @nwire/logger-winston. Envelope ids auto-attached via loggerForEnvelope.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"log",
|
|
7
|
+
"logger",
|
|
8
|
+
"nwire",
|
|
9
|
+
"observability"
|
|
10
|
+
],
|
|
11
|
+
"files": [
|
|
12
|
+
"dist",
|
|
13
|
+
"README.md"
|
|
14
|
+
],
|
|
15
|
+
"type": "module",
|
|
16
|
+
"main": "./dist/logger-iface.js",
|
|
17
|
+
"types": "./dist/logger-iface.d.ts",
|
|
18
|
+
"exports": {
|
|
19
|
+
".": {
|
|
20
|
+
"import": "./dist/logger-iface.js",
|
|
21
|
+
"types": "./dist/logger-iface.d.ts"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"publishConfig": {
|
|
25
|
+
"access": "public"
|
|
26
|
+
},
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"@nwire/envelope": "0.7.0"
|
|
29
|
+
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@types/node": "^22.19.9",
|
|
32
|
+
"typescript": "^5.9.3"
|
|
33
|
+
},
|
|
34
|
+
"scripts": {
|
|
35
|
+
"build": "tsc && node ../../scripts/fix-dist-extensions.mjs dist",
|
|
36
|
+
"dev": "tsc --watch",
|
|
37
|
+
"typecheck": "tsc --noEmit"
|
|
38
|
+
}
|
|
39
|
+
}
|