@warlock.js/logger 5.17.1 → 5.19.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/CHANGELOG.md +6 -0
- package/llms-full.txt +12 -12
- package/llms.txt +5 -5
- package/package.json +2 -2
- package/skills/capture-unhandled-errors/SKILL.md +1 -1
- package/skills/configure-logger/SKILL.md +1 -1
- package/skills/filter-log-entries/SKILL.md +1 -1
- package/skills/flush-logs-on-shutdown/SKILL.md +1 -1
- package/skills/logger-basics/SKILL.md +1 -1
- package/skills/overview/SKILL.md +1 -1
- package/skills/pick-log-channel/SKILL.md +1 -1
- package/skills/redact-sensitive-log-fields/SKILL.md +1 -1
- package/skills/ship-logs-to-sentry/SKILL.md +1 -1
- package/skills/test-logging-code/SKILL.md +1 -1
- package/skills/use-log-helpers/SKILL.md +1 -1
- package/skills/write-custom-log-channel/SKILL.md +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,12 @@ All notable changes to `@warlock.js/logger` are documented in this file.
|
|
|
4
4
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). `@warlock.js/*` packages are released in lockstep — every package shares the same version number, so a version below may list only the changes that affected this package.
|
|
6
6
|
|
|
7
|
+
## 5.19.0 - 2026-09-23
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
|
|
11
|
+
- Refined package skill-discovery descriptions and regenerated the llms projections.
|
|
12
|
+
|
|
7
13
|
## 5.13.0 - 2026-09-17
|
|
8
14
|
|
|
9
15
|
### Fixed
|
package/llms-full.txt
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
---
|
|
10
10
|
name: capture-unhandled-errors
|
|
11
|
-
description:
|
|
11
|
+
description: "Error capture — routing Node's unhandled errors through the logger in @warlock.js/logger; use when you need to capture unhandled errors."
|
|
12
12
|
---
|
|
13
13
|
|
|
14
14
|
# Error capture — routing Node's unhandled errors through the logger
|
|
@@ -123,7 +123,7 @@ If you want these routed to a specific file, filter on `data.module === "app"`.
|
|
|
123
123
|
|
|
124
124
|
---
|
|
125
125
|
name: configure-logger
|
|
126
|
-
description:
|
|
126
|
+
description: "Setup — registering channels at startup in @warlock.js/logger; use when you need to configure logger."
|
|
127
127
|
---
|
|
128
128
|
|
|
129
129
|
# Setup — registering channels at startup
|
|
@@ -232,7 +232,7 @@ See [`@warlock.js/logger/redact-sensitive-log-fields/SKILL.md`](@warlock.js/logg
|
|
|
232
232
|
|
|
233
233
|
---
|
|
234
234
|
name: filter-log-entries
|
|
235
|
-
description:
|
|
235
|
+
description: "Filtering — levels + filter predicate + minLevel in @warlock.js/logger; use when you need to filter log entries."
|
|
236
236
|
---
|
|
237
237
|
|
|
238
238
|
# Filtering — `levels` + `filter` predicate + `minLevel`
|
|
@@ -356,7 +356,7 @@ The `minLevel` check is the fastest of the three (single comparison before fan-o
|
|
|
356
356
|
|
|
357
357
|
---
|
|
358
358
|
name: flush-logs-on-shutdown
|
|
359
|
-
description:
|
|
359
|
+
description: "Lifecycle — flushing buffered channels before exit in @warlock.js/logger; use when you need to flush logs on shutdown."
|
|
360
360
|
---
|
|
361
361
|
|
|
362
362
|
# Lifecycle — flushing buffered channels before exit
|
|
@@ -477,7 +477,7 @@ captureAnyUnhandledRejection();
|
|
|
477
477
|
|
|
478
478
|
---
|
|
479
479
|
name: logger-basics
|
|
480
|
-
description:
|
|
480
|
+
description: "Start here for @warlock.js/logger channels, structured entries, transports, and application logging setup."
|
|
481
481
|
---
|
|
482
482
|
|
|
483
483
|
# Log with channels
|
|
@@ -569,7 +569,7 @@ Every call signature is the same — `module`, `action`, `message`, optional `co
|
|
|
569
569
|
|
|
570
570
|
---
|
|
571
571
|
name: overview
|
|
572
|
-
description:
|
|
572
|
+
description: "@warlock.js/logger overview for orientation and choosing the focused skill for the task."
|
|
573
573
|
---
|
|
574
574
|
|
|
575
575
|
# `@warlock.js/logger` — overview
|
|
@@ -667,7 +667,7 @@ Silence the logger globally in tests via `log.setChannels([])` in `setupFiles`.
|
|
|
667
667
|
|
|
668
668
|
---
|
|
669
669
|
name: pick-log-channel
|
|
670
|
-
description:
|
|
670
|
+
description: "Channels — which one to pick and how to configure it in @warlock.js/logger; use when you need to choose log channel."
|
|
671
671
|
---
|
|
672
672
|
|
|
673
673
|
# Channels — which one to pick and how to configure it
|
|
@@ -826,7 +826,7 @@ If two channels share a `name`, only one is reachable this way — the search re
|
|
|
826
826
|
|
|
827
827
|
---
|
|
828
828
|
name: redact-sensitive-log-fields
|
|
829
|
-
description:
|
|
829
|
+
description: "Redaction — keeping secrets out of logs in @warlock.js/logger; use when you need to redact sensitive log fields."
|
|
830
830
|
---
|
|
831
831
|
|
|
832
832
|
# Redaction — keeping secrets out of logs
|
|
@@ -986,7 +986,7 @@ For most apps with `<10` redact paths and shallow context, the cost is below 100
|
|
|
986
986
|
|
|
987
987
|
---
|
|
988
988
|
name: ship-logs-to-sentry
|
|
989
|
-
description:
|
|
989
|
+
description: "Ship logs to Sentry — the SentryLog channel in @warlock.js/logger; use when you need to ship logs to sentry."
|
|
990
990
|
---
|
|
991
991
|
|
|
992
992
|
# Ship logs to Sentry — the `SentryLog` channel
|
|
@@ -1108,7 +1108,7 @@ The channel never crashes your app: the dynamic import failure is swallowed, the
|
|
|
1108
1108
|
|
|
1109
1109
|
---
|
|
1110
1110
|
name: test-logging-code
|
|
1111
|
-
description:
|
|
1111
|
+
description: "Testing — code that logs, and asserting on log output in @warlock.js/logger; use when you need to test logging code."
|
|
1112
1112
|
---
|
|
1113
1113
|
|
|
1114
1114
|
# Testing — code that logs, and asserting on log output
|
|
@@ -1289,7 +1289,7 @@ See [`@warlock.js/logger/capture-unhandled-errors/SKILL.md`](@warlock.js/logger/
|
|
|
1289
1289
|
|
|
1290
1290
|
---
|
|
1291
1291
|
name: use-log-helpers
|
|
1292
|
-
description:
|
|
1292
|
+
description: "Helpers — assert, timer in @warlock.js/logger; use when you need to use log helpers."
|
|
1293
1293
|
---
|
|
1294
1294
|
|
|
1295
1295
|
# Helpers — `assert`, `timer`
|
|
@@ -1359,7 +1359,7 @@ end({ rowsProcessed: report.rowCount });
|
|
|
1359
1359
|
|
|
1360
1360
|
---
|
|
1361
1361
|
name: write-custom-log-channel
|
|
1362
|
-
description:
|
|
1362
|
+
description: "Custom channels — extending LogChannel in @warlock.js/logger; use when you need to write custom log channel."
|
|
1363
1363
|
---
|
|
1364
1364
|
|
|
1365
1365
|
# Custom channels — extending `LogChannel`
|
package/llms.txt
CHANGED
|
@@ -7,14 +7,14 @@
|
|
|
7
7
|
## Skills
|
|
8
8
|
|
|
9
9
|
- [capture-unhandled-errors](@warlock.js/logger/capture-unhandled-errors/SKILL.md): (no description)
|
|
10
|
-
- [configure-logger](@warlock.js/logger/configure-logger/SKILL.md):
|
|
10
|
+
- [configure-logger](@warlock.js/logger/configure-logger/SKILL.md): Setup — registering channels at startup in @warlock.js/logger; use when you need to configure logger.
|
|
11
11
|
- [filter-log-entries](@warlock.js/logger/filter-log-entries/SKILL.md): (no description)
|
|
12
12
|
- [flush-logs-on-shutdown](@warlock.js/logger/flush-logs-on-shutdown/SKILL.md): (no description)
|
|
13
|
-
- [logger-basics](@warlock.js/logger/logger-basics/SKILL.md): Start
|
|
13
|
+
- [logger-basics](@warlock.js/logger/logger-basics/SKILL.md): Start here for @warlock.js/logger channels, structured entries, transports, and application logging setup.
|
|
14
14
|
- [overview](@warlock.js/logger/overview/SKILL.md): (no description)
|
|
15
15
|
- [pick-log-channel](@warlock.js/logger/pick-log-channel/SKILL.md): (no description)
|
|
16
|
-
- [redact-sensitive-log-fields](@warlock.js/logger/redact-sensitive-log-fields/SKILL.md):
|
|
16
|
+
- [redact-sensitive-log-fields](@warlock.js/logger/redact-sensitive-log-fields/SKILL.md): Redaction — keeping secrets out of logs in @warlock.js/logger; use when you need to redact sensitive log fields.
|
|
17
17
|
- [ship-logs-to-sentry](@warlock.js/logger/ship-logs-to-sentry/SKILL.md): (no description)
|
|
18
|
-
- [test-logging-code](@warlock.js/logger/test-logging-code/SKILL.md):
|
|
19
|
-
- [use-log-helpers](@warlock.js/logger/use-log-helpers/SKILL.md):
|
|
18
|
+
- [test-logging-code](@warlock.js/logger/test-logging-code/SKILL.md): Testing — code that logs, and asserting on log output in @warlock.js/logger; use when you need to test logging code.
|
|
19
|
+
- [use-log-helpers](@warlock.js/logger/use-log-helpers/SKILL.md): Helpers — assert, timer in @warlock.js/logger; use when you need to use log helpers.
|
|
20
20
|
- [write-custom-log-channel](@warlock.js/logger/write-custom-log-channel/SKILL.md): (no description)
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@mongez/copper": "^2.1.2",
|
|
6
6
|
"@mongez/reinforcements": "^4.0.1",
|
|
7
|
-
"@warlock.js/fs": "5.
|
|
7
|
+
"@warlock.js/fs": "5.19.0",
|
|
8
8
|
"dayjs": "^1.11.9",
|
|
9
9
|
"safe-stable-stringify": "^2.5.0"
|
|
10
10
|
},
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"warlock": {
|
|
33
33
|
"environment": "server"
|
|
34
34
|
},
|
|
35
|
-
"version": "5.
|
|
35
|
+
"version": "5.19.0",
|
|
36
36
|
"main": "./cjs/index.cjs",
|
|
37
37
|
"module": "./esm/index.mjs",
|
|
38
38
|
"types": "./esm/index.d.mts",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: capture-unhandled-errors
|
|
3
|
-
description:
|
|
3
|
+
description: "Error capture — routing Node's unhandled errors through the logger in @warlock.js/logger; use when you need to capture unhandled errors."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Error capture — routing Node's unhandled errors through the logger
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: configure-logger
|
|
3
|
-
description:
|
|
3
|
+
description: "Setup — registering channels at startup in @warlock.js/logger; use when you need to configure logger."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Setup — registering channels at startup
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: filter-log-entries
|
|
3
|
-
description:
|
|
3
|
+
description: "Filtering — levels + filter predicate + minLevel in @warlock.js/logger; use when you need to filter log entries."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Filtering — `levels` + `filter` predicate + `minLevel`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: flush-logs-on-shutdown
|
|
3
|
-
description:
|
|
3
|
+
description: "Lifecycle — flushing buffered channels before exit in @warlock.js/logger; use when you need to flush logs on shutdown."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Lifecycle — flushing buffered channels before exit
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: logger-basics
|
|
3
|
-
description:
|
|
3
|
+
description: "Start here for @warlock.js/logger channels, structured entries, transports, and application logging setup."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Log with channels
|
package/skills/overview/SKILL.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: overview
|
|
3
|
-
description:
|
|
3
|
+
description: "@warlock.js/logger overview for orientation and choosing the focused skill for the task."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# `@warlock.js/logger` — overview
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: pick-log-channel
|
|
3
|
-
description:
|
|
3
|
+
description: "Channels — which one to pick and how to configure it in @warlock.js/logger; use when you need to choose log channel."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Channels — which one to pick and how to configure it
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: redact-sensitive-log-fields
|
|
3
|
-
description:
|
|
3
|
+
description: "Redaction — keeping secrets out of logs in @warlock.js/logger; use when you need to redact sensitive log fields."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Redaction — keeping secrets out of logs
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: ship-logs-to-sentry
|
|
3
|
-
description:
|
|
3
|
+
description: "Ship logs to Sentry — the SentryLog channel in @warlock.js/logger; use when you need to ship logs to sentry."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Ship logs to Sentry — the `SentryLog` channel
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: test-logging-code
|
|
3
|
-
description:
|
|
3
|
+
description: "Testing — code that logs, and asserting on log output in @warlock.js/logger; use when you need to test logging code."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Testing — code that logs, and asserting on log output
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: use-log-helpers
|
|
3
|
-
description:
|
|
3
|
+
description: "Helpers — assert, timer in @warlock.js/logger; use when you need to use log helpers."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Helpers — `assert`, `timer`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: write-custom-log-channel
|
|
3
|
-
description:
|
|
3
|
+
description: "Custom channels — extending LogChannel in @warlock.js/logger; use when you need to write custom log channel."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Custom channels — extending `LogChannel`
|