{"_id":"@dgllghr/pino-openobserve","_rev":"2-fc8da4a026a490a25b84039d4e63dd2b","name":"@dgllghr/pino-openobserve","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"@dgllghr/pino-openobserve","version":"0.1.0","keywords":["pino","openobserve","logging","transport"],"author":{"name":"OpenObserve"},"license":"Apache-2.0","_id":"@dgllghr/pino-openobserve@0.1.0","maintainers":[{"name":"dgllghr","email":"d@gllghr.net"}],"homepage":"https://github.com/openobserve/pino-openobserve#readme","bugs":{"url":"https://github.com/openobserve/pino-openobserve/issues"},"dist":{"shasum":"24b0085061d7987d37fcae7191918074be1b8d56","tarball":"https://registry.npmjs.org/@dgllghr/pino-openobserve/-/pino-openobserve-0.1.0.tgz","fileCount":5,"integrity":"sha512-HfhAiiv9xjURhpnneU71c0XhGg/v0kgywauJmbbFykZH62t7TfGf/Fezk9EJt+iZsINst16Rt0CiwwKzSUwH9w==","signatures":[{"sig":"MEQCIBhCO2Z3161UvQsbe77kBVLogQ57ogTmPsv3p0bTI3LaAiAoh2WYCy7oySB4hjWcBX2drN+K3nmYCL2VjYtRwJCc1A==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":20667},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"77360c05e4e822fa9a6d4a4192420dff0718eb0d","scripts":{"test":"jest","build":"tsc","prepare":"npm run build"},"_npmUser":{"name":"dgllghr","email":"d@gllghr.net"},"repository":{"url":"git+https://github.com/openobserve/pino-openobserve.git","type":"git"},"_npmVersion":"10.9.2","description":"Pino transport for Openobserve","directories":{},"_nodeVersion":"23.11.0","dependencies":{"url":"^0.11.3","stream":"^0.0.2"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.2.5","typescript":"^4.9.5","@types/jest":"^29.5.14","@types/node":"^14.18.63"},"_npmOperationalInternal":{"tmp":"tmp/pino-openobserve_0.1.0_1747959918424_0.5942407473662568","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@dgllghr/pino-openobserve","version":"0.1.1","description":"Pino transport for Openobserve","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"jest","build":"tsc","prepare":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/openobserve/pino-openobserve.git"},"keywords":["pino","openobserve","logging","transport"],"license":"Apache-2.0","author":{"name":"OpenObserve"},"dependencies":{"stream":"^0.0.2","url":"^0.11.3"},"devDependencies":{"@types/jest":"^29.5.14","@types/node":"^14.18.63","jest":"^29.7.0","ts-jest":"^29.2.5","typescript":"^4.9.5"},"_id":"@dgllghr/pino-openobserve@0.1.1","gitHead":"9377fa45bff2fd85efc157dc75dfadebb2d4e83e","bugs":{"url":"https://github.com/openobserve/pino-openobserve/issues"},"homepage":"https://github.com/openobserve/pino-openobserve#readme","_nodeVersion":"23.11.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-e+n6ER5HiAOamNwk9wTAd6e6wHxVgTa9l8yDNbLTaQDzws75k2FC9HVZ9ycFOtVxmBTLYimjz8pTZ5SFwYEy2g==","shasum":"900afcab2d816642904b3e90111f9267b3be9196","tarball":"https://registry.npmjs.org/@dgllghr/pino-openobserve/-/pino-openobserve-0.1.1.tgz","fileCount":5,"unpackedSize":20895,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIDSBDkZyvRJTYWW9R8ks2KVsXXpx1+N2SzGJGJIr/9KoAiEAhp/qsP7BtsTcI1jNTHCKhdtt6G7p8DUR7pFQF7EBSGk="}]},"_npmUser":{"name":"dgllghr","email":"d@gllghr.net"},"directories":{},"maintainers":[{"name":"dgllghr","email":"d@gllghr.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/pino-openobserve_0.1.1_1747993220463_0.663848244911857"},"_hasShrinkwrap":false}},"time":{"created":"2025-05-23T00:25:18.350Z","modified":"2025-05-23T09:40:20.803Z","0.1.0":"2025-05-23T00:25:18.633Z","0.1.1":"2025-05-23T09:40:20.641Z"},"bugs":{"url":"https://github.com/openobserve/pino-openobserve/issues"},"author":{"name":"OpenObserve"},"license":"Apache-2.0","homepage":"https://github.com/openobserve/pino-openobserve#readme","keywords":["pino","openobserve","logging","transport"],"repository":{"type":"git","url":"git+https://github.com/openobserve/pino-openobserve.git"},"description":"Pino transport for Openobserve","maintainers":[{"name":"dgllghr","email":"d@gllghr.net"}],"readme":"# @dgllghr/pino-openobserve\n\nThis is a transport for the Pino logging library that sends logs to an Openobserve server in batches.\n\n## Prerequisites\n\nThis package requires Node.js version 18.0.0 or later and pino v7+\n\n## Installation\n\nYou can install this package using npm or Yarn.\n\nWith npm:\n\n```bash\nnpm install @dgllghr/pino-openobserve\n```\n\nWith Yarn:\n\n```bash\nyarn add @dgllghr/pino-openobserve\n```\n\n## Options\n\nThe transport accepts an options object with the following properties:\n\n| Property | Required | Default | Description |\n| -------- | -------- | ------- | ----------- |\n| url | Yes | - | The URL of your Openobserve server. |\n| organization | Yes | - | The name of your organization. |\n| streamName | Yes | - | The name of the stream to which logs should be sent. |\n| auth | Yes | `{ username: \"\", password: \"\" } | { accessKey: \"\" }` | An object with `username` and `password` properties for authenticating with the Openobserve server |\n| batchSize | No | `100` | The number of logs to include in each batch. |\n| timeThreshold | No | `300000` (5 mins) | The interval, in milliseconds, at which logs should be sent. |\n| silentSuccess | No | false | A boolean indicating whether to suppress successful operation messages. |\n| silentError | No | false | A boolean indicating whether to suppress error messages. |\n\n## Usage\n\nThe way you import the `pino` and `@dgllghr/pino-openobserve` packages depends on whether you're using `import` or `require`.\n\nUsing `import`:\n\n```javascript\nimport pino from 'pino';\nimport OpenobserveTransport from '@dgllghr/pino-openobserve';\n```\n\nUsing `require`:\n\n```javascript\nconst pino = require('pino');\nconst OpenobserveTransport = require('@dgllghr/pino-openobserve');\n```\n\nAfter importing the necessary packages, you can use this transport with Pino like this:\n\n```javascript\nconst logger = pino({\n  level: 'info',\n  transport: {\n    target: OpenobserveTransport,\n    options: {\n      url: 'https://your-openobserve-server.com',\n      organization: 'your-organization',\n      streamName: 'your-stream',\n      auth: {\n        accessKey: 'your-access-key',\n      },\n    },\n  },\n});\n\nlogger.info('Hello, world!');\nlogger.info({ lang: 'js', code: 'Node.js' }, 'Logging with JSON');\n```\n\nIn this example, the second `logger.info` call logs a JSON object containing the properties `lang` and `code`, along with the message 'Logging with JSON'. This is a common way to include structured data in your logs when using Pino.\n\n## License\n\nThis package is licensed under the Apache License, Version 2.0. See the `LICENSE` file for more details.\n","readmeFilename":"README.md"}