{"_id":"@bussin/context-logger","_rev":"5-eca2c027eb6e475547c433ca0fdd784d","name":"@bussin/context-logger","dist-tags":{"latest":"0.2.1-subpath.1"},"versions":{"0.1.0":{"name":"@bussin/context-logger","version":"0.1.0","keywords":["logging","logger","context","winston","console","async_hooks"],"author":{"name":"wesley.thorsen@gmail.com"},"license":"MIT","_id":"@bussin/context-logger@0.1.0","maintainers":[{"name":"wesleythorsen","email":"wesley.thorsen@gmail.com"}],"homepage":"https://github.com/bussin-io/context-logger#readme","bugs":{"url":"https://github.com/bussin-io/context-logger/issues"},"dist":{"shasum":"95784d48e3b3683cc777b5a9affd43a692494fd2","tarball":"https://registry.npmjs.org/@bussin/context-logger/-/context-logger-0.1.0.tgz","fileCount":63,"integrity":"sha512-i5zPVHKwdzJNA75zt/apTXPWjftHWWTzEedN9d4nGXDn+ClNJsWUwCof09kH1pBYA30pQJj7DuiebDHvhRLQwg==","signatures":[{"sig":"MEQCIHGKepWe3YYYM5Q0e3uA8pgeERTu0VEheMurVTAOeDCAAiAHmtV0rPRA/x5El3cxmDjQMevmZUFm12Xebw7fv6oYhA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":44527},"exports":{".":{"types":"./dist-types/index.d.ts","import":"./dist-es/index.js","require":"./dist-cjs/index.js"},"./winston":{"types":"./dist-types/winston/index.d.ts","import":"./dist-es/winston/index.js","require":"./dist-cjs/winston/index.js"}},"private":false,"scripts":{"lint":"eslint --fix */**/*.ts && prettier --write */**/*.ts","test":"jest","build":"npm run clean && npm ci && concurrently 'npm:build:cjs' 'npm:build:es' 'npm:build:types'","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","build:es":"tsc -p tsconfig.es.json && tsc-alias","build:cjs":"tsc -p tsconfig.cjs.json && tsc-alias","build:types":"tsc -p tsconfig.types.json && tsc-alias"},"_npmUser":{"name":"wesleythorsen","email":"wesley.thorsen@gmail.com"},"repository":{"url":"git+https://github.com/bussin-io/context-logger.git","type":"github"},"_npmVersion":"10.8.2","description":"A TypeScript native context capturing logger.","directories":{},"_nodeVersion":"20.19.2","dependencies":{"winston":"^3.17.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","eslint":"^9.19.0","rimraf":"^5.0.7","ts-jest":"^29.2.5","ts-node":"^10.9.2","prettier":"^3.3.3","tsc-alias":"^1.8.10","@eslint/js":"^9.19.0","typescript":"^5.7.3","@types/jest":"^29.5.14","@types/node":"^20.11.19","concurrently":"7.0.0","@types/winston":"^2.4.4","tsconfig-paths":"^4.2.0","typescript-eslint":"^8.21.0","eslint-plugin-import":"^2.31.0","@tsconfig/recommended":"1.0.1","eslint-config-prettier":"^10.0.1"},"_npmOperationalInternal":{"tmp":"tmp/context-logger_0.1.0_1749699655495_0.2994621111587983","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@bussin/context-logger","version":"0.1.1","keywords":["logging","logger","context","winston","console","async_hooks"],"author":{"name":"wesley.thorsen@gmail.com"},"license":"MIT","_id":"@bussin/context-logger@0.1.1","maintainers":[{"name":"wesleythorsen","email":"wesley.thorsen@gmail.com"}],"homepage":"https://github.com/bussin-io/context-logger#readme","bugs":{"url":"https://github.com/bussin-io/context-logger/issues"},"dist":{"shasum":"6674a2888a6197c1db09fb6e4940741986c3962d","tarball":"https://registry.npmjs.org/@bussin/context-logger/-/context-logger-0.1.1.tgz","fileCount":63,"integrity":"sha512-kzc0UMfCpt1smtv4E2DlgZQQPjMyeh2N3qEOJGPuwi0ghVY6TGhePh5kYOZaAQQhI+Ps584IKffxhJeseuhlYg==","signatures":[{"sig":"MEYCIQCgjqSi9oNxl7Fdu/iYGmfBpKMP9r6Ci/mjXWWn6bBeLwIhAKHzSUVVB1TJOjMCd291m5F8Mfv215zD5LyYmaVUEIPO","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":44696},"exports":{".":{"types":"./dist-types/index.d.ts","import":"./dist-es/index.js","require":"./dist-cjs/index.js"},"./console":{"types":"./dist-types/console/index.d.ts","import":"./dist-es/console/index.js","require":"./dist-cjs/console/index.js"},"./winston":{"types":"./dist-types/winston/index.d.ts","import":"./dist-es/winston/index.js","require":"./dist-cjs/winston/index.js"}},"private":false,"scripts":{"lint":"eslint --fix */**/*.ts && prettier --write */**/*.ts","test":"jest","build":"npm run clean && npm ci && concurrently 'npm:build:cjs' 'npm:build:es' 'npm:build:types'","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","build:es":"tsc -p tsconfig.es.json && tsc-alias","build:cjs":"tsc -p tsconfig.cjs.json && tsc-alias","build:types":"tsc -p tsconfig.types.json && tsc-alias"},"_npmUser":{"name":"wesleythorsen","actor":{"name":"wesleythorsen","type":"user","email":"wesley.thorsen@gmail.com"},"email":"wesley.thorsen@gmail.com"},"repository":{"url":"git+https://github.com/bussin-io/context-logger.git","type":"github"},"_npmVersion":"10.8.2","description":"A TypeScript native context capturing logger.","directories":{},"_nodeVersion":"20.19.2","dependencies":{"winston":"^3.17.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","eslint":"^9.19.0","rimraf":"^5.0.7","ts-jest":"^29.2.5","ts-node":"^10.9.2","prettier":"^3.3.3","tsc-alias":"^1.8.10","@eslint/js":"^9.19.0","typescript":"^5.7.3","@types/jest":"^29.5.14","@types/node":"^20.11.19","concurrently":"7.0.0","@types/winston":"^2.4.4","tsconfig-paths":"^4.2.0","typescript-eslint":"^8.21.0","eslint-plugin-import":"^2.31.0","@tsconfig/recommended":"1.0.1","eslint-config-prettier":"^10.0.1"},"_npmOperationalInternal":{"tmp":"tmp/context-logger_0.1.1_1750185433032_0.3124334584957662","host":"s3://npm-registry-packages-npm-production"}},"0.2.0-subpath.2":{"name":"@bussin/context-logger","version":"0.2.0-subpath.2","keywords":["logging","logger","context","winston","console","async_hooks"],"author":{"name":"wesley.thorsen@gmail.com"},"license":"MIT","_id":"@bussin/context-logger@0.2.0-subpath.2","maintainers":[{"name":"wesleythorsen","email":"wesley.thorsen@gmail.com"}],"homepage":"https://github.com/bussin-io/context-logger#readme","bugs":{"url":"https://github.com/bussin-io/context-logger/issues"},"dist":{"shasum":"a83e0ae8d2581d7263072502de1590abbefd0c27","tarball":"https://registry.npmjs.org/@bussin/context-logger/-/context-logger-0.2.0-subpath.2.tgz","fileCount":63,"integrity":"sha512-JRh03Gr9KYfJrjya2cr+vULcAjvQndlEoeNEmiMvCrCLEGifQoLmMoy7HY+b9By9vmjCbGJRnsFSmSFy7s4hXA==","signatures":[{"sig":"MEUCIQCOIO3kQ0bekZZBgQ8dsCPMhO7gBgax2LBUd7vZXbhkmQIgaCAVAYzuq00OWEnq2Y2WrjR9NQ4pu+G/+OFW1r01aEk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":44694},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","engines":{"npm":">=10","node":">=18"},"exports":{".":{"types":"./dist-types/index.d.ts","import":"./dist-es/index.js","require":"./dist-cjs/index.js"},"./core":{"types":"./dist-types/core/index.d.ts","import":"./dist-es/core/index.js","require":"./dist-cjs/core/index.js"},"./console":{"types":"./dist-types/console/index.d.ts","import":"./dist-es/console/index.js","require":"./dist-cjs/console/index.js"},"./winston":{"types":"./dist-types/winston/index.d.ts","import":"./dist-es/winston/index.js","require":"./dist-cjs/winston/index.js"}},"imports":{"#core":"./dist-es/core/index.js","#core/*":"./dist-es/core/*/index.js","#console":"./dist-es/console/index.js","#winston":"./dist-es/winston/index.js","#console/*":"./dist-es/console/*/index.js","#winston/*":"./dist-es/winston/*/index.js"},"private":false,"scripts":{"lint":"eslint --no-warn-ignored --fix */**/*.ts && prettier --write */**/*.ts","test":"jest","build":"npm run clean && concurrently 'npm:build:cjs' 'npm:build:es' 'npm:build:types'","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","build:es":"tsc -p tsconfig.es.json && tsc-alias -p tsconfig.es.json","build:cjs":"tsc -p tsconfig.cjs.json && tsc-alias -p tsconfig.cjs.json","test:smoke":"npm run clean && npm run build && node test/smoke/smoke-esm.test.mjs && node test/smoke/smoke-cjs.test.cjs","build:types":"tsc -p tsconfig.types.json && tsc-alias -p tsconfig.types.json"},"_npmUser":{"name":"wesleythorsen","email":"wesley.thorsen@gmail.com"},"repository":{"url":"git+https://github.com/bussin-io/context-logger.git","type":"github"},"_npmVersion":"10.8.2","description":"A TypeScript native context capturing logger.","directories":{},"sideEffects":false,"_nodeVersion":"20.19.4","dependencies":{"winston":"^3.17.0"},"typesVersions":{"<4.7":{"*":["dist-types/*"]}},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","eslint":"^9.34.0","rimraf":"^5.0.10","ts-jest":"^29.4.1","ts-node":"^10.9.2","prettier":"^3.6.2","tsc-alias":"^1.8.16","@eslint/js":"^9.34.0","typescript":"^5.9.2","@types/jest":"^29.5.14","@types/node":"^20.19.12","concurrently":"7.6.0","@types/winston":"^2.4.4","tsconfig-paths":"^4.2.0","typescript-eslint":"^8.42.0","jest-mock-extended":"^4.0.0","eslint-plugin-import":"^2.32.0","@tsconfig/recommended":"1.0.10","eslint-config-prettier":"^10.1.8"},"_npmOperationalInternal":{"tmp":"tmp/context-logger_0.2.0-subpath.2_1756919743281_0.6324605741463163","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@bussin/context-logger","version":"0.2.0","keywords":["logging","logger","context","winston","console","async_hooks"],"author":{"name":"wesley.thorsen@gmail.com"},"license":"MIT","_id":"@bussin/context-logger@0.2.0","maintainers":[{"name":"wesleythorsen","email":"wesley.thorsen@gmail.com"}],"homepage":"https://github.com/bussin-io/context-logger#readme","bugs":{"url":"https://github.com/bussin-io/context-logger/issues"},"dist":{"shasum":"7861d3363d4d0b9e1b55b77d83f2845b86812e8a","tarball":"https://registry.npmjs.org/@bussin/context-logger/-/context-logger-0.2.0.tgz","fileCount":63,"integrity":"sha512-F6Z9eJlIZ1ti5acoxJOIS5MRJcDEuM6MsIRr1iWRMrUHdQ2rPk3YPke1K3m3Am9WytcnV4mnjvop6HskYqU9AQ==","signatures":[{"sig":"MEUCIQDJt34KYt17ajBUYDeBu+T5uYNbhOL7cW53Dj8D7LtHVQIgQfhT8jRKOBE3njMrs2TbDhDfljLsKz49sVxpmLJzetM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":44684},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","engines":{"npm":">=10","node":">=18"},"exports":{".":{"types":"./dist-types/index.d.ts","import":"./dist-es/index.js","require":"./dist-cjs/index.js"},"./core":{"types":"./dist-types/core/index.d.ts","import":"./dist-es/core/index.js","require":"./dist-cjs/core/index.js"},"./console":{"types":"./dist-types/console/index.d.ts","import":"./dist-es/console/index.js","require":"./dist-cjs/console/index.js"},"./winston":{"types":"./dist-types/winston/index.d.ts","import":"./dist-es/winston/index.js","require":"./dist-cjs/winston/index.js"}},"imports":{"#core":"./dist-es/core/index.js","#core/*":"./dist-es/core/*/index.js","#console":"./dist-es/console/index.js","#winston":"./dist-es/winston/index.js","#console/*":"./dist-es/console/*/index.js","#winston/*":"./dist-es/winston/*/index.js"},"private":false,"scripts":{"lint":"eslint --no-warn-ignored --fix */**/*.ts && prettier --write */**/*.ts","test":"jest","build":"npm run clean && concurrently 'npm:build:cjs' 'npm:build:es' 'npm:build:types'","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","build:es":"tsc -p tsconfig.es.json && tsc-alias -p tsconfig.es.json","build:cjs":"tsc -p tsconfig.cjs.json && tsc-alias -p tsconfig.cjs.json","test:smoke":"npm run clean && npm run build && node test/smoke/smoke-esm.test.mjs && node test/smoke/smoke-cjs.test.cjs","build:types":"tsc -p tsconfig.types.json && tsc-alias -p tsconfig.types.json"},"_npmUser":{"name":"wesleythorsen","email":"wesley.thorsen@gmail.com"},"repository":{"url":"git+https://github.com/bussin-io/context-logger.git","type":"github"},"_npmVersion":"10.8.2","description":"A TypeScript native context capturing logger.","directories":{},"sideEffects":false,"_nodeVersion":"20.19.4","dependencies":{"winston":"^3.17.0"},"typesVersions":{"<4.7":{"*":["dist-types/*"]}},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","eslint":"^9.34.0","rimraf":"^5.0.10","ts-jest":"^29.4.1","ts-node":"^10.9.2","prettier":"^3.6.2","tsc-alias":"^1.8.16","@eslint/js":"^9.34.0","typescript":"^5.9.2","@types/jest":"^29.5.14","@types/node":"^20.19.12","concurrently":"7.6.0","@types/winston":"^2.4.4","tsconfig-paths":"^4.2.0","typescript-eslint":"^8.42.0","jest-mock-extended":"^4.0.0","eslint-plugin-import":"^2.32.0","@tsconfig/recommended":"1.0.10","eslint-config-prettier":"^10.1.8"},"_npmOperationalInternal":{"tmp":"tmp/context-logger_0.2.0_1756922456377_0.32865992852717607","host":"s3://npm-registry-packages-npm-production"}},"0.2.1-subpath.1":{"name":"@bussin/context-logger","version":"0.2.1-subpath.1","description":"A TypeScript native context capturing logger.","author":{"name":"wesley.thorsen@gmail.com"},"license":"MIT","sideEffects":false,"private":false,"engines":{"node":">=18","npm":">=10"},"repository":{"type":"github","url":"git+https://github.com/bussin-io/context-logger.git"},"keywords":["logging","logger","context","winston","console","async_hooks"],"exports":{".":{"import":"./dist-es/index.js","require":"./dist-cjs/index.js","types":"./dist-types/index.d.ts"},"./console":{"import":"./dist-es/console/index.js","require":"./dist-cjs/console/index.js","types":"./dist-types/console/index.d.ts"},"./core":{"import":"./dist-es/core/index.js","require":"./dist-cjs/core/index.js","types":"./dist-types/core/index.d.ts"},"./winston":{"import":"./dist-es/winston/index.js","require":"./dist-cjs/winston/index.js","types":"./dist-types/winston/index.d.ts"}},"main":"./dist-cjs/index.js","module":"./dist-es/index.js","types":"./dist-types/index.d.ts","typesVersions":{"<4.7":{"*":["dist-types/*"]}},"scripts":{"build":"npm run clean && concurrently 'npm:build:cjs' 'npm:build:es' 'npm:build:types'","build:cjs":"tsc -p tsconfig.cjs.json","build:es":"tsc -p tsconfig.es.json","build:types":"tsc -p tsconfig.types.json","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","lint":"eslint --no-warn-ignored --fix */**/*.ts && prettier --write */**/*.ts","test":"jest","test:smoke":"npm run clean && npm run build && node test/smoke/smoke-esm.test.mjs && node test/smoke/smoke-cjs.test.cjs"},"devDependencies":{"@eslint/js":"^9.34.0","@tsconfig/recommended":"1.0.10","@types/jest":"^29.5.14","@types/node":"^20.19.12","@types/winston":"^2.4.4","concurrently":"7.6.0","eslint":"^9.34.0","eslint-config-prettier":"^10.1.8","eslint-plugin-import":"^2.32.0","jest":"^29.7.0","jest-mock-extended":"^4.0.0","prettier":"^3.6.2","rimraf":"^5.0.10","ts-jest":"^29.4.1","ts-node":"^10.9.2","typescript":"^5.9.2","typescript-eslint":"^8.42.0"},"dependencies":{"winston":"^3.17.0"},"_id":"@bussin/context-logger@0.2.1-subpath.1","bugs":{"url":"https://github.com/bussin-io/context-logger/issues"},"homepage":"https://github.com/bussin-io/context-logger#readme","_nodeVersion":"20.19.4","_npmVersion":"10.8.2","dist":{"integrity":"sha512-Q5k+CCeA9pByfGki4+QeQEEulPEMAA5jMB1rqD1cgDy9GpAyW7szsFYk3sczbS2QUqiL9zAZYZ40Ex94iYKigQ==","shasum":"34763afaabcc876d7b79c3cba7cd4d966728ed04","tarball":"https://registry.npmjs.org/@bussin/context-logger/-/context-logger-0.2.1-subpath.1.tgz","fileCount":63,"unpackedSize":44660,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIH//RS6VUDAFWxZlUnYFOouJwPJfFw8VnyO7jG7q3z1aAiB2YeAesPIdY1NcQwbtioH28hyhwx2hj/DPravEO+ZVig=="}]},"_npmUser":{"name":"wesleythorsen","email":"wesley.thorsen@gmail.com"},"directories":{},"maintainers":[{"name":"wesleythorsen","email":"wesley.thorsen@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/context-logger_0.2.1-subpath.1_1756926049897_0.859959449182202"},"_hasShrinkwrap":false}},"time":{"created":"2025-06-12T03:40:55.424Z","modified":"2025-09-03T19:00:50.303Z","0.1.0":"2025-06-12T03:40:55.681Z","0.1.1":"2025-06-17T18:37:13.238Z","0.2.0-subpath.2":"2025-09-03T17:15:43.478Z","0.2.0":"2025-09-03T18:00:56.565Z","0.2.1-subpath.1":"2025-09-03T19:00:50.080Z"},"bugs":{"url":"https://github.com/bussin-io/context-logger/issues"},"author":{"name":"wesley.thorsen@gmail.com"},"license":"MIT","homepage":"https://github.com/bussin-io/context-logger#readme","keywords":["logging","logger","context","winston","console","async_hooks"],"repository":{"type":"github","url":"git+https://github.com/bussin-io/context-logger.git"},"description":"A TypeScript native context capturing logger.","maintainers":[{"name":"wesleythorsen","email":"wesley.thorsen@gmail.com"}],"readme":"# @bussin/context-logger\n\n[![NPM Version](https://img.shields.io/npm/v/@bussin/context-logger)](https://npmjs.com/package/@bussin/context-logger) [![NPM Version](https://img.shields.io/npm/dw/@bussin/context-logger)](https://npmjs.com/package/@bussin/context-logger) [![NPM Version](https://img.shields.io/bundlephobia/min/@bussin/context-logger)](https://npmjs.com/package/@bussin/context-logger)\n\nAdditional functionality for the @sinclair/typebox library.\n\nLicense: [MIT](https://opensource.org/licenses/MIT)\n\n## Installation\n\n```bash\n    npm install @bussin/context-logger\n```\n\n## Quick Start\n\n```TypeScript\nimport { createLogger, IContextLogger } from '@bussin/context-logger';\n\nconst logger: IContextLogger = createLogger({ level: 'debug' });\n\nawait logger.addContext({ traceId: 1234 }, async context => {\n  logger.info(\"log will contain traceId in log's json\");\n});\n\n```\n\n## Metadata\n\n```TypeScript\nimport { createLogger, IContextLogger } from '@bussin/context-logger';\n\nconst logger: IContextLogger = createLogger({ level: 'debug' });\n\nawait logger.addContext({ traceId: 1234 }, async context => {\n  logger.info(\"log will contain traceId and metadata\". { metadata: \"test\", other: 1234 });\n});\n\n```\n\n## Errors\n\n```TypeScript\nimport { createLogger, IContextLogger } from '@bussin/context-logger';\n\nconst logger: IContextLogger = createLogger({ level: 'debug' });\n\nawait logger.addContext({ traceId: 1234 }, async context => {\n  try {\n    throw new Error(\"test error 123\");\n  } catch (error) {\n    logger.error(error, { additionalInfo: \"error thrown in method X\" }); // log will contain traceId\n  }\n});\n\n```\n\n## Contributing\n\nTo contribute, all PRs should target the `develop` branch. Feature branches must be rebased onto the latest `develop` commit before merging to keep a linear git history.\n\n## Publishing\n\nPackage releases are started by manually triggering the [Bump Version](https://github.com/bussin-io/context-logger/actions/workflows/bump-version.yml) GitHub Action. The Bump Version action will create a release commit with the version bump and an associated git tag, and automatically start the [Build and Publish](https://github.com/bussin-io/context-logger/actions/workflows/build-and-publish.yml) GitHub Action. The Build and Publish action requires a manual approval step from a repository admin. Once approved, the package will be published to the NPM registry.\n\n## Support\n\nPlease create a PR if you find any missing functionality that you's like to add. For bugs, please use the [issues tracker](https://github.com/bussin-io/context-logger/issues). I'd be happy to help you!\n","readmeFilename":"README.md"}