{"_id":"@carrot-foundation/web-logger","_rev":"10-8fac7305c4f4b28142ac6cd7ba949cac","name":"@carrot-foundation/web-logger","dist-tags":{"latest":"0.4.0"},"versions":{"0.2.2":{"name":"@carrot-foundation/web-logger","version":"0.2.2","_id":"@carrot-foundation/web-logger@0.2.2","maintainers":[{"name":"bkkest","email":"gabrielopes31@gmail.com"},{"name":"carrot.fndn","email":"npm.admin@carrot.eco"},{"name":"andrewribeiro","email":"andtankian@gmail.com"}],"homepage":"https://github.com/carrot-foundation/middle-earth#readme","bugs":{"url":"https://github.com/carrot-foundation/middle-earth/issues"},"dist":{"shasum":"c175721d2d6ec06a46539e0767dd4e93a42a6500","tarball":"https://registry.npmjs.org/@carrot-foundation/web-logger/-/web-logger-0.2.2.tgz","fileCount":4,"integrity":"sha512-IC1xjSes34usIC/ymLODx/UFsmT/PHrp/Po8HBDFgEAr97JN0TIV0fDhG++hvB/od/+pPLCDNg+KkcozeXwxMw==","signatures":[{"sig":"MEQCIF41FD8rKGAzcDZTyWelGdJEtyuBbWgqau7NHlj4huZMAiBTSTPqPAIL5clxSwmr519P+++i45TBI08UC9Lar9ljNQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2584},"main":"./src/index.js","type":"module","types":"./src/index.d.ts","module":"./src/index.js","exports":{".":{"types":"./src/index.d.ts","import":"./src/index.js","default":"./src/index.js"}},"gitHead":"ced7bfe0e13f7f1bf923165acff92e8e57ad74e8","_npmUser":{"name":"bkkest","email":"gabrielopes31@gmail.com"},"repository":{"url":"git+https://github.com/carrot-foundation/middle-earth.git","type":"git","directory":"libs/publishable/web/logger"},"_npmVersion":"10.9.2","directories":{},"_nodeVersion":"22.13.1","dependencies":{"pino":"^9.5.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/web-logger_0.2.2_1762538183489_0.7292036735001683","host":"s3://npm-registry-packages-npm-production"}},"0.2.3":{"name":"@carrot-foundation/web-logger","version":"0.2.3","_id":"@carrot-foundation/web-logger@0.2.3","maintainers":[{"name":"bkkest","email":"gabrielopes31@gmail.com"},{"name":"carrot.fndn","email":"npm.admin@carrot.eco"},{"name":"andrewribeiro","email":"andtankian@gmail.com"}],"homepage":"https://github.com/carrot-foundation/middle-earth#readme","bugs":{"url":"https://github.com/carrot-foundation/middle-earth/issues"},"dist":{"shasum":"289d23679103c5c83a334623840124674e0a116d","tarball":"https://registry.npmjs.org/@carrot-foundation/web-logger/-/web-logger-0.2.3.tgz","fileCount":4,"integrity":"sha512-38KbuTa3/tCKQAEhEL0beq8FfXyBcpQCyHwPM29othwsbmlMT508DpW/DOIENaaHFSgTZw0Zi3qSzyQ+h3gc3w==","signatures":[{"sig":"MEQCIDKUQkxZp7mg9YMb6dBGcTLPNMZ1evPUabXS2LVg7E9jAiAIbvzNl3viGBdYAFwXYKKV+qf6Yc7xAktoo8FS97NnXw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2584},"main":"./src/index.js","type":"module","types":"./src/index.d.ts","module":"./src/index.js","exports":{".":{"types":"./src/index.d.ts","import":"./src/index.js","default":"./src/index.js"}},"gitHead":"ced7bfe0e13f7f1bf923165acff92e8e57ad74e8","_npmUser":{"name":"bkkest","email":"gabrielopes31@gmail.com"},"repository":{"url":"git+https://github.com/carrot-foundation/middle-earth.git","type":"git","directory":"libs/publishable/web/logger"},"_npmVersion":"10.9.2","directories":{},"_nodeVersion":"22.13.1","dependencies":{"pino":"^9.5.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/web-logger_0.2.3_1762538449368_0.3281672390446675","host":"s3://npm-registry-packages-npm-production"}},"0.2.4":{"name":"@carrot-foundation/web-logger","version":"0.2.4","_id":"@carrot-foundation/web-logger@0.2.4","maintainers":[{"name":"bkkest","email":"gabrielopes31@gmail.com"},{"name":"carrot.fndn","email":"npm.admin@carrot.eco"},{"name":"andrewribeiro","email":"andtankian@gmail.com"}],"homepage":"https://github.com/carrot-foundation/middle-earth#readme","bugs":{"url":"https://github.com/carrot-foundation/middle-earth/issues"},"dist":{"shasum":"3533c92df26e017cf007c67f371a9c266f277ba2","tarball":"https://registry.npmjs.org/@carrot-foundation/web-logger/-/web-logger-0.2.4.tgz","fileCount":5,"integrity":"sha512-cJk8zAJUUdjBMNT39L/K5ZPYUM4QtKrpNqghEnBS7YUhv1mmz7Rmth/fJJvYUnG30h3EB3MpFxdr7I9dS/OrJQ==","signatures":[{"sig":"MEUCIDICVZ9fwLq2vckNN5fHdOim9TVUk++CGDZuNSBNWaZtAiEAgyD8q9fH1unHLEygt7iPzekV88YtAKupCbPy+Mwnlmo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2569},"main":"./src/index.js","type":"module","types":"./src/index.d.ts","module":"./src/index.js","exports":{".":{"types":"./src/index.d.ts","import":"./src/index.js","default":"./src/index.js"}},"gitHead":"e8dc2cc198b466ffe3c5cf438c57c23e682b7eaa","_npmUser":{"name":"carrot.fndn","email":"npm.admin@carrot.eco"},"repository":{"url":"git+https://github.com/carrot-foundation/middle-earth.git","type":"git","directory":"libs/publishable/web/logger"},"_npmVersion":"10.9.3","directories":{},"_nodeVersion":"22.20.0","dependencies":{"pino":"^9.5.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/web-logger_0.2.4_1762538989512_0.2763119409088437","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@carrot-foundation/web-logger","version":"0.3.0","_id":"@carrot-foundation/web-logger@0.3.0","maintainers":[{"name":"bkkest","email":"gabrielopes31@gmail.com"},{"name":"carrot.fndn","email":"npm.admin@carrot.eco"},{"name":"andrewribeiro","email":"andtankian@gmail.com"}],"homepage":"https://github.com/carrot-foundation/middle-earth#readme","bugs":{"url":"https://github.com/carrot-foundation/middle-earth/issues"},"dist":{"shasum":"4d05b155c3414478b24bd643374f8f2ef0a30f78","tarball":"https://registry.npmjs.org/@carrot-foundation/web-logger/-/web-logger-0.3.0.tgz","fileCount":5,"integrity":"sha512-jupjfoeIGNiGWsBPRYTkbSNsF/JIwRwBZnGFNXMeFErn01+nprlHXMTCAYAHtqVEeT8J8gkU5ZZi6TDXkXpXgg==","signatures":[{"sig":"MEUCIC92nC47sHGP8vjreNWEjH+s+B8llJuF0j+IPnoVa5woAiEAyxUciLQv8792o99Lmns+t2hq9sonOvLahFMSCt/emig=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2522},"main":"./index.js","type":"module","types":"./index.d.ts","module":"./index.js","exports":{".":{"types":"./index.d.ts","import":"./index.js","default":"./index.js"}},"gitHead":"e77acb7646c2e0127990ca1aa24885385dd6cb51","_npmUser":{"name":"carrot.fndn","email":"npm.admin@carrot.eco"},"repository":{"url":"git+https://github.com/carrot-foundation/middle-earth.git","type":"git","directory":"libs/publishable/web/logger"},"_npmVersion":"10.9.3","directories":{},"_nodeVersion":"22.20.0","dependencies":{"pino":"^9.5.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/web-logger_0.3.0_1762544815304_0.1981291838734176","host":"s3://npm-registry-packages-npm-production"}},"0.4.0":{"name":"@carrot-foundation/web-logger","version":"0.4.0","_id":"@carrot-foundation/web-logger@0.4.0","maintainers":[{"name":"bkkest","email":"gabrielopes31@gmail.com"},{"name":"carrot.fndn","email":"npm.admin@carrot.eco"},{"name":"andrewribeiro","email":"andtankian@gmail.com"}],"homepage":"https://github.com/carrot-foundation/middle-earth#readme","bugs":{"url":"https://github.com/carrot-foundation/middle-earth/issues"},"dist":{"shasum":"adad0d47f9552f4f9ac4037288a8f659ecd95064","tarball":"https://registry.npmjs.org/@carrot-foundation/web-logger/-/web-logger-0.4.0.tgz","fileCount":6,"integrity":"sha512-PYWi3htC21XEFyoIzp3JWOaWK1iMjAkqLC2o/bRaqhThzxav2TLQwqfwLqRa/5ysyk0/SLewdn3qDQXsLRgqCw==","signatures":[{"sig":"MEUCICbsoxzTn8X1FL4gpqZhrRouGM0aNOk1YDt2OpYxkAGpAiEAl3SnSkaKK84mUBx50rLgm66dQnfOQETwfGq9cMJ5A0w=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4351},"main":"./index.js","type":"module","types":"./index.d.ts","module":"./index.js","exports":{".":{"types":"./index.d.ts","import":"./index.js","default":"./index.js"}},"gitHead":"b14a70eb7fb1144bfe8fffc04bd3d04667db0a15","_npmUser":{"name":"carrot.fndn","email":"npm.admin@carrot.eco"},"repository":{"url":"git+https://github.com/carrot-foundation/middle-earth.git","type":"git","directory":"libs/publishable/web/logger"},"_npmVersion":"10.9.3","description":"A lightweight logging library for web applications built on top of [Pino](https://github.com/pinojs/pino).","directories":{},"_nodeVersion":"22.20.0","dependencies":{"pino":"^9.5.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/web-logger_0.4.0_1762548411883_0.38984066076819235","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2025-11-07T17:56:23.404Z","modified":"2026-04-13T15:00:14.252Z","0.2.2":"2025-11-07T17:56:23.677Z","0.2.3":"2025-11-07T18:00:49.541Z","0.2.4":"2025-11-07T18:09:49.699Z","0.3.0":"2025-11-07T19:46:55.539Z","0.4.0":"2025-11-07T20:46:52.109Z"},"bugs":{"url":"https://github.com/carrot-foundation/middle-earth/issues"},"homepage":"https://github.com/carrot-foundation/middle-earth#readme","repository":{"url":"git+https://github.com/carrot-foundation/middle-earth.git","type":"git","directory":"libs/publishable/web/logger"},"description":"A lightweight logging library for web applications built on top of [Pino](https://github.com/pinojs/pino).","maintainers":[{"email":"npm.admin@carrot.eco","name":"carrot.fndn"},{"email":"amarcoscastelo@gmail.com","name":"amarcoscastelo"},{"email":"cristianorsantos.95@gmail.com","name":"cristianosantos95"},{"email":"sangalli@gmail.com","name":"sangalli"}],"readme":"# @carrot-foundation/web-logger\n\nA lightweight logging library for web applications built on top of [Pino](https://github.com/pinojs/pino).\n\n## Installation\n\n```bash\nnpm install @carrot-foundation/web-logger\n```\n\nor\n\n```bash\npnpm add @carrot-foundation/web-logger\n```\n\nor\n\n```bash\nyarn add @carrot-foundation/web-logger\n```\n\n## Usage\n\n```typescript\nimport { logger } from '@carrot-foundation/web-logger';\n\n// Log messages at different levels\nlogger.info('Application started');\nlogger.debug('Debug information');\nlogger.warn('Warning message');\nlogger.error('Error occurred');\n\n// Log with additional context\nlogger.info({ userId: '123', action: 'login' }, 'User logged in');\n\n// Log errors with context\ntry {\n  // some code\n} catch (error) {\n  logger.error({ error }, 'Operation failed');\n}\n```\n\n## Features\n\n- Built on top of Pino for high-performance logging\n- Simple and intuitive API\n- Structured logging support\n- Lightweight with minimal dependencies\n- ESM module support\n\n## API\n\nThe logger instance is a configured Pino logger with all standard Pino methods available:\n\n- `logger.trace()` - Log at trace level\n- `logger.debug()` - Log at debug level\n- `logger.info()` - Log at info level\n- `logger.warn()` - Log at warn level\n- `logger.error()` - Log at error level\n- `logger.fatal()` - Log at fatal level\n\nFor more advanced usage and configuration options, refer to the [Pino documentation](https://getpino.io).\n\n## Repository\n\n[GitHub](https://github.com/carrot-foundation/middle-earth/tree/main/libs/publishable/web/logger)\n","readmeFilename":"README.md"}