@adhd/apigen-plugin-logger 0.1.0 → 0.1.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.md +14 -0
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# @adhd/apigen-plugin-logger
|
|
2
|
+
|
|
3
|
+
apigen **Layer plugin** — wraps dispatch with structured request/timing logging. Activate with
|
|
4
|
+
`--use` on any target.
|
|
5
|
+
|
|
6
|
+
Part of [apigen](../../README.md). Driven via [`@adhd/apigen-cli`](../../cli).
|
|
7
|
+
|
|
8
|
+
```bash
|
|
9
|
+
npx @adhd/apigen-cli run --source ./api.ts --type mcp --use @adhd/apigen-plugin-logger
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
```ts
|
|
13
|
+
import { loggerPlugin, makeLoggerPlugin, type LoggerOptions } from '@adhd/apigen-plugin-logger'
|
|
14
|
+
```
|