{"_id":"@cognitiveproof/softbinding-api-plugin-pino-logger","name":"@cognitiveproof/softbinding-api-plugin-pino-logger","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@cognitiveproof/softbinding-api-plugin-pino-logger","version":"1.0.0","description":"Pino structured logging plugin for the C2PA Soft Binding Resolution API server","license":"MIT","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsc","typecheck":"tsc --noEmit","test":"jest"},"dependencies":{"@cognitiveproof/softbinding-api-plugin-types":"^1.0.0","pino":"^9.6.0"},"devDependencies":{"@types/jest":"^30.0.0","jest":"^30.4.2","ts-jest":"^29.4.11","typescript":"^5.3.3"},"gitHead":"9ad98a64ca17474e8154258c8a269fadfb7e44d1","_id":"@cognitiveproof/softbinding-api-plugin-pino-logger@1.0.0","_nodeVersion":"25.9.0","_npmVersion":"11.12.1","dist":{"integrity":"sha512-AqKUfAGyxI/phdFP6w4pAG1L91H4GG8a4YnciU7tj32DiiHxXvNXjiBTdoef6t+LX89LPgnwV4jSHyA70++EAA==","shasum":"80edb26392208557f1b780acaf17213bbc6f0a29","tarball":"https://registry.npmjs.org/@cognitiveproof/softbinding-api-plugin-pino-logger/-/softbinding-api-plugin-pino-logger-1.0.0.tgz","fileCount":5,"unpackedSize":4553,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIBl8I4Mruh49oZr1w6nBCl5G4Am4Srm/S7UXB28QmJAzAiEA4wRlqdiDEopTRQ/8NpzZj5lwJLyplODvoh9Sqmu6BrY="}]},"_npmUser":{"name":"mrappard","email":"mrappard@gmail.com"},"directories":{},"maintainers":[{"name":"mrappard","email":"mrappard@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/softbinding-api-plugin-pino-logger_1.0.0_1781196982825_0.881487223106048"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-11T16:56:22.588Z","1.0.0":"2026-06-11T16:56:22.986Z","modified":"2026-06-11T16:56:23.304Z"},"maintainers":[{"name":"mrappard","email":"mrappard@gmail.com"}],"description":"Pino structured logging plugin for the C2PA Soft Binding Resolution API server","license":"MIT","readme":"# @cognitiveproof/softbinding-api-plugin-pino-logger\n\n[Pino](https://getpino.io/) `LoggerPlugin` for [`@cognitiveproof/softbinding-api-server`](https://github.com/mrappard/c2pa-soft-binding-server) — the C2PA Soft Binding Resolution API server.\n\nReplaces the server's built-in console JSON logger with [Pino](https://getpino.io/) — a very low-overhead structured logger. `createServer()` uses this logger for request logging (`{ method, path, status, durationMs }` per request) and for error reporting in the global error handler.\n\n## Install\n\n```bash\nnpm install @cognitiveproof/softbinding-api-server @cognitiveproof/softbinding-api-plugin-pino-logger\n```\n\n## Usage\n\n```ts\nimport { createServer } from '@cognitiveproof/softbinding-api-server';\n\nconst app = createServer({\n  logger: '@cognitiveproof/softbinding-api-plugin-pino-logger',\n});\n```\n\nOr pass the package name via the `LOGGER_PLUGIN` environment variable and omit the `logger` option entirely.\n\nTo pass options (instead of relying on `LOG_LEVEL`), import and call the plugin directly:\n\n```ts\nimport { createServer } from '@cognitiveproof/softbinding-api-server';\nimport createPinoLogger from '@cognitiveproof/softbinding-api-plugin-pino-logger';\n\nconst app = createServer({\n  logger: createPinoLogger({ level: 'debug' }),\n});\n```\n\n## Configuration\n\n| Option  | Env var     | Default | Description                                                                      |\n| ------- | ----------- | ------- | -------------------------------------------------------------------------------- |\n| `level` | `LOG_LEVEL` | `info`  | Minimum log level (`fatal`, `error`, `warn`, `info`, `debug`, `trace`, `silent`) |\n\n## License\n\n[MIT](LICENSE)\n","readmeFilename":"README.md","_rev":"1-41df6cccc48c6773a7e83774937d1808"}