{"_id":"@3billion_dev/logger-module","name":"@3billion_dev/logger-module","dist-tags":{"latest":"1.1.0"},"versions":{"1.1.0":{"name":"@3billion_dev/logger-module","version":"1.1.0","main":"dist/index.js","types":"dist/index.d.ts","license":"MIT","description":"A NestJS logger module for the GEBRA project, based on Pino with built-in Sentry integration.","author":{"name":"Warren","email":"thyoon@3billion.io"},"repository":{"type":"git","url":"git+https://github.com/3billion/gebra.v2-server.git","directory":"libs/logger-module"},"keywords":["nestjs","logger","pino","sentry","module"],"publishConfig":{"access":"public"},"scripts":{"build":"tsc","prepublishOnly":"npm run build","release":"npm publish --access public"},"peerDependencies":{"@nestjs/common":"11.1.0","class-transformer":"^0.5.1","nestjs-pino":"^4.4.0"},"devDependencies":{"typescript":"^5.8.2"},"_id":"@3billion_dev/logger-module@1.1.0","gitHead":"4ea918234d322bbf953ee8f6a0d9346b3c9cd2a1","bugs":{"url":"https://github.com/3billion/gebra.v2-server/issues"},"homepage":"https://github.com/3billion/gebra.v2-server#readme","_nodeVersion":"20.19.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-euBjzrVqEEE1LKvJrYuS9/ZB0NknvXCo9DQ9kku2piF6y4/LWRpyS6Nk1PuxQnV97BtzcRaA7mQ7kn7Tj79xUQ==","shasum":"32ae360cbcfb8d5c7a957e49d354ab4f9f39d9d7","tarball":"https://registry.npmjs.org/@3billion_dev/logger-module/-/logger-module-1.1.0.tgz","fileCount":16,"unpackedSize":150069,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCBGRoVAqOQph12QMjceOV7AJwVPq1MFUKc7zHfAUZn6gIge87t4IY+C3YNsw4aWdGFGa8I/EUOTFysThCYcyyGPQs="}]},"_npmUser":{"name":"3billion_dev","email":"dev@3billion.io"},"directories":{},"maintainers":[{"name":"3billion_dev","email":"dev@3billion.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/logger-module_1.1.0_1749704383206_0.8050446615713989"},"_hasShrinkwrap":false}},"time":{"created":"2025-06-12T04:59:43.124Z","1.1.0":"2025-06-12T04:59:43.423Z","modified":"2025-06-12T04:59:43.704Z"},"maintainers":[{"name":"3billion_dev","email":"dev@3billion.io"}],"description":"A NestJS logger module for the GEBRA project, based on Pino with built-in Sentry integration.","homepage":"https://github.com/3billion/gebra.v2-server#readme","keywords":["nestjs","logger","pino","sentry","module"],"repository":{"type":"git","url":"git+https://github.com/3billion/gebra.v2-server.git","directory":"libs/logger-module"},"author":{"name":"Warren","email":"thyoon@3billion.io"},"bugs":{"url":"https://github.com/3billion/gebra.v2-server/issues"},"license":"MIT","readme":"# Logger Module\n\nGEBRA project에서 공통으로 사용하기 위한 Nestjs module.\nPino logger를 기반으로 Sentry 기능을 내장하고 있습니다.\n\n## 설치\n\nGEBRA Monorepo 내에서 사용하고자 하는 service의 package.json에 아래와 같이 dependency를 추가합니다.\n\n```json\n{\n  \"dependencies\": {\n    \"logger-module\": \"^1.0.0\"\n  }\n}\n```\n\npackage.json에 명시 이후 `yarn (install)` 명령어로 workspace 내 dependency를 업데이트 합니다.\n\n## 사용법\n\nNestJS root module에 아래와 같이 모듈을 import해줍니다.\n\n```typescript\n@Module({\n    imports: [\n        LoggerModule.forRoot()\n    ],\n    controllers: [],\n})\n```\n\n`forRoot` 매서드의 인자는 `Nestjs Pino` library의 인자와 동일한 값을 갖습니다.([참고](https://github.com/iamolegga/nestjs-pino?tab=readme-ov-file#configuration-params))\n\n## Sentry 관련 기능\n\nLogger의 info, warn, error 매서드 호출 시 항상 Sentry context에 로깅된 정보가 breadcrumb으로 추가됩니다.\n","readmeFilename":"README.md","_rev":"1-8141f8911d7cb35d24e29f8afd34aec8"}