@cobol-ts/debug 0.0.14 → 0.0.16
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 +11 -7
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
# @cobol-ts/debug
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Build optional named debug loggers from a shared map of enable flags.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Debug messages are not hot-path counters; use `metrics` for deterministic operation measurement.
|
|
6
6
|
|
|
7
|
-
##
|
|
7
|
+
## Logger lifecycle
|
|
8
8
|
|
|
9
|
-
`
|
|
9
|
+
`makeDebugLog(debugState, name)` creates a named logger whose enabled state is decided when the logger is created. `createMockDebugLog()` provides a test implementation.
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Use `MemoryMetrics` instead of debug strings when comparing per-record operation counts; the logger is for human-readable diagnostics rather than deterministic measurement.
|
|
12
12
|
|
|
13
|
-
##
|
|
13
|
+
## Source and tests
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
**Public entry points:** [debug.mock.ts](./src/debug.mock.ts), [debug.ts](./src/debug.ts).
|
|
16
|
+
|
|
17
|
+
**Tests:** [debug.log.spec.ts](src/debug.log.spec.ts)
|
|
18
|
+
|
|
19
|
+
**Related:** [@cobol-ts/metrics](../metrics/README.md) · [@cobol-ts/records](../records/README.md).
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cobol-ts/debug",
|
|
3
3
|
"description": "Debug utilities ",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.16",
|
|
5
5
|
"main": "dist/index",
|
|
6
6
|
"types": "dist/index",
|
|
7
7
|
"browserslist": {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
]
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@cobol-ts/records": "0.0.
|
|
20
|
+
"@cobol-ts/records": "0.0.16"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"typescript": "^5.2.2",
|