{"_id":"@a_jackie_z/logger","_rev":"5-269ecd70ab6b2c850d03f08c7d8abbed","name":"@a_jackie_z/logger","dist-tags":{"latest":"1.0.4"},"versions":{"1.0.0":{"name":"@a_jackie_z/logger","version":"1.0.0","author":{"name":"Sang Lu","email":"connect.with.sang@gmail.com"},"license":"MIT","_id":"@a_jackie_z/logger@1.0.0","maintainers":[{"name":"sanglu","email":"connect.with.sang@gmail.com"}],"dist":{"shasum":"2f73411e9fd3ad6714a0d4ee61e65e02c519e151","tarball":"https://registry.npmjs.org/@a_jackie_z/logger/-/logger-1.0.0.tgz","fileCount":6,"integrity":"sha512-J5WC4B7Lt98CasnWp/pHRh4n2LKLcNsaO5qlGY4weG99j/YGocm2YPUZfXCy8742sLlkeMXj91pK8s/9KDY50w==","signatures":[{"sig":"MEYCIQDvJ+zqlvjlKDVTxIp3ZTfmM2BqWPXqrwYpVXvSg3m+VAIhAKbiP6e7jZziYkJxcorHhelK4jX2HdIGgQDurB6XC/HK","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4864},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"f71c09804fbb51b5c72dac15513d3fa3a45585f9","scripts":{"build":"tsup"},"_npmUser":{"name":"sanglu","email":"connect.with.sang@gmail.com"},"_npmVersion":"11.6.2","description":"A simple logger using pino","directories":{},"_nodeVersion":"24.13.0","dependencies":{"pino":"^10.2.0","pino-pretty":"^13.1.3"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","typescript":"^5.9.3","@types/node":"^25.0.9"},"_npmOperationalInternal":{"tmp":"tmp/logger_1.0.0_1768837584700_0.5524278671657015","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@a_jackie_z/logger","version":"1.0.1","author":{"name":"Sang Lu","email":"connect.with.sang@gmail.com"},"license":"MIT","_id":"@a_jackie_z/logger@1.0.1","maintainers":[{"name":"sanglu","email":"connect.with.sang@gmail.com"}],"homepage":"https://github.com/a-jackie-z/logger#readme","bugs":{"url":"https://github.com/a-jackie-z/logger/issues"},"dist":{"shasum":"5b6d69ab0d9472855e604ccf907a3b289a553a57","tarball":"https://registry.npmjs.org/@a_jackie_z/logger/-/logger-1.0.1.tgz","fileCount":6,"integrity":"sha512-9XwF5jGMj1aXKxXwcj/lUkeTVTLTsNpo+umwA7ytjjvmD+t8Ve2gp21s9VpT2MJhUsW+38JY4G2zujUjuBj/jg==","signatures":[{"sig":"MEQCICNdX5oxJHuWI2b6TuFGWyZBYq9Fh6mke2Zr1XPq5enVAiBpTAzP2hfymy1lL0Wpj2WWbM6eXY3AS9McRlnMwZC53g==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4937},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"0673667e2bf27051d73e50487e1c1ef9d096d42a","scripts":{"build":"tsup"},"_npmUser":{"name":"sanglu","email":"connect.with.sang@gmail.com"},"repository":{"url":"git+https://github.com/a-jackie-z/logger.git"},"_npmVersion":"11.6.2","description":"A simple logger using pino","directories":{},"_nodeVersion":"24.13.0","dependencies":{"pino":"^10.2.0","pino-pretty":"^13.1.3"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","typescript":"^5.9.3","@types/node":"^25.0.9"},"_npmOperationalInternal":{"tmp":"tmp/logger_1.0.1_1770012073545_0.34482818203448673","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@a_jackie_z/logger","version":"1.0.2","author":{"name":"Sang Lu","email":"connect.with.sang@gmail.com"},"license":"MIT","_id":"@a_jackie_z/logger@1.0.2","maintainers":[{"name":"sanglu","email":"connect.with.sang@gmail.com"}],"homepage":"https://github.com/a-jackie-z/logger#readme","bugs":{"url":"https://github.com/a-jackie-z/logger/issues"},"dist":{"shasum":"24b719a633e4736efef5d218a10ffcff1f980859","tarball":"https://registry.npmjs.org/@a_jackie_z/logger/-/logger-1.0.2.tgz","fileCount":6,"integrity":"sha512-vNEB9Uc+yZH0Q7s2ZRox575KoDHLuNmWcMAfYADrcW7Gt9ICTzrrX2NZ5XVXRniQgZHLhYvpYLRvV/a5jG+Sxw==","signatures":[{"sig":"MEYCIQCJ3wypNSWd+CgsjYGxboy3FIfLiZXDzgnSuC0/2pgUqwIhAPxaJbp3sxwZg5o1+VmN6biJIL5YvwaVfM++9Fg23/vu","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4937},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"0673667e2bf27051d73e50487e1c1ef9d096d42a","scripts":{"build":"tsup"},"_npmUser":{"name":"sanglu","email":"connect.with.sang@gmail.com"},"repository":{"url":"git+https://github.com/a-jackie-z/logger.git"},"_npmVersion":"11.6.2","description":"A simple logger using pino","directories":{},"_nodeVersion":"24.13.0","dependencies":{"pino":"^10.3.0","pino-pretty":"^13.1.3"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","typescript":"^5.9.3","@types/node":"^25.2.0"},"_npmOperationalInternal":{"tmp":"tmp/logger_1.0.2_1770142682212_0.23872625527195446","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@a_jackie_z/logger","version":"1.0.3","author":{"name":"Sang Lu","email":"connect.with.sang@gmail.com"},"license":"MIT","_id":"@a_jackie_z/logger@1.0.3","maintainers":[{"name":"sanglu","email":"connect.with.sang@gmail.com"}],"homepage":"https://github.com/a-jackie-z/logger#readme","bugs":{"url":"https://github.com/a-jackie-z/logger/issues"},"dist":{"shasum":"6dcafc323511b849e4db23f24256ac7c60ef4fe9","tarball":"https://registry.npmjs.org/@a_jackie_z/logger/-/logger-1.0.3.tgz","fileCount":6,"integrity":"sha512-yYbFo9heeGH+2VeFV8SbYxH/edCWdcDNlnNX8m66FHUn+QfGEd0IPvglwqMdxkefJyQZxB7XfEasSw8O2tZlCQ==","signatures":[{"sig":"MEYCIQDw85ZQX0B7El71tYFJK0sDgT84SkQvy+ZPtG/zqzv40wIhAPMMi3djbQBF2gG00ARZsd8JFc6OiKDoy67tJrK3Bt6F","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4945},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"ed43f33b66b88d1bb626527cb9b062b15dba6da7","scripts":{"build":"tsup"},"_npmUser":{"name":"sanglu","email":"connect.with.sang@gmail.com"},"repository":{"url":"git+https://github.com/a-jackie-z/logger.git"},"_npmVersion":"11.8.0","description":"A simple logger using pino","directories":{},"_nodeVersion":"24.13.1","dependencies":{"pino":"^10.3.1","pino-pretty":"^13.1.3"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","typescript":"^5.9.3","@types/node":"^25.3.0"},"_npmOperationalInternal":{"tmp":"tmp/logger_1.0.3_1772032188361_0.4304745674383119","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"name":"@a_jackie_z/logger","version":"1.0.4","description":"A simple logger using pino","license":"MIT","author":{"name":"Sang Lu","email":"connect.with.sang@gmail.com"},"repository":{"url":"git+https://github.com/a-jackie-z/logger.git"},"type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"build":"tsup"},"dependencies":{"pino":"^10.3.1","pino-pretty":"^13.1.3"},"devDependencies":{"@types/node":"^25.5.0","tsup":"^8.5.1","typescript":"^6.0.2"},"gitHead":"4ea81deb14992da78dd2144aabefbd1f444dc3f0","_id":"@a_jackie_z/logger@1.0.4","bugs":{"url":"https://github.com/a-jackie-z/logger/issues"},"homepage":"https://github.com/a-jackie-z/logger#readme","_nodeVersion":"24.13.1","_npmVersion":"11.8.0","dist":{"integrity":"sha512-wccNDTnV23S4Om/TJ1T0zwmITgWQiyiozIdNRS8O/vaJo//HVvl4sRdDdIioyuAlfw2oY2gx5M0KYMk+xDnQwQ==","shasum":"bb5342c3cc6dc36c51a8647b5c7be0bda03f418a","tarball":"https://registry.npmjs.org/@a_jackie_z/logger/-/logger-1.0.4.tgz","fileCount":6,"unpackedSize":4945,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCRf/0eM9G64pKR95GP3OulzNagFsn4syGGgeSe57cUywIgKX2JTVkKAQ37K2XV/A6I3DkIysW+5pWv2IzsvMXuAbA="}]},"_npmUser":{"name":"sanglu","email":"connect.with.sang@gmail.com"},"directories":{},"maintainers":[{"name":"sanglu","email":"connect.with.sang@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/logger_1.0.4_1774347050976_0.27394048170190577"},"_hasShrinkwrap":false}},"time":{"created":"2026-01-19T15:46:24.282Z","modified":"2026-03-24T10:10:51.280Z","1.0.0":"2026-01-19T15:46:24.832Z","1.0.1":"2026-02-02T06:01:13.731Z","1.0.2":"2026-02-03T18:18:02.363Z","1.0.3":"2026-02-25T15:09:48.518Z","1.0.4":"2026-03-24T10:10:51.123Z"},"bugs":{"url":"https://github.com/a-jackie-z/logger/issues"},"author":{"name":"Sang Lu","email":"connect.with.sang@gmail.com"},"license":"MIT","homepage":"https://github.com/a-jackie-z/logger#readme","repository":{"url":"git+https://github.com/a-jackie-z/logger.git"},"description":"A simple logger using pino","maintainers":[{"name":"sanglu","email":"connect.with.sang@gmail.com"}],"readme":"# @a_jackie_z/logger\n\nA lightweight logger wrapper for microservices using [Pino](https://github.com/pinojs/pino).\n\n## Installation\n\n```bash\nnpm install @a_jackie_z/logger\n```\n\n## Usage\n\n```typescript\nimport { logger } from '@a_jackie_z/logger'\n\nlogger.info('Application started')\nlogger.debug('Debug information')\nlogger.warn('Warning message')\nlogger.error('Error occurred')\nlogger.fatal('Fatal error')\n```\n\n## Configuration\n\nThe logger is configured via environment variables:\n\n### `LOG_LEVEL`\n\nSets the minimum logging level. Default: `info`\n\nSupported values: `trace`, `debug`, `info`, `warn`, `error`, `fatal`, `silent`\n\n```bash\nLOG_LEVEL=debug node app.js\n```\n\n### `LOG_PRETTY`\n\nEnables pretty-printed output for development. Default: `false`\n\nSupported values: `true`, `on`, `1` (case-insensitive)\n\n```bash\nLOG_PRETTY=true node app.js\n```\n\n## Features\n\n- **Fast**: Built on Pino, one of the fastest Node.js loggers\n- **Environment-based configuration**: Configure via environment variables\n- **Pretty printing**: Optional human-readable output for development\n- **Production-ready**: JSON output by default for structured logging\n- **TypeScript support**: Full type definitions included\n\n## Examples\n\n### Development Mode\n\n```bash\nLOG_PRETTY=true LOG_LEVEL=debug npm start\n```\n\n### Production Mode\n\n```bash\nLOG_LEVEL=info npm start\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md"}