{"_id":"@alt-javascript/camel-lite-component-log","_rev":"3-92a9eef47dd7842d5f91085efa80e971","name":"@alt-javascript/camel-lite-component-log","dist-tags":{"latest":"1.1.1"},"versions":{"1.0.2":{"name":"@alt-javascript/camel-lite-component-log","version":"1.0.2","keywords":["alt-javascript","camel","camel-lite","eai","eip","integration","log","logging","component"],"author":{"name":"Craig Parravicini"},"_id":"@alt-javascript/camel-lite-component-log@1.0.2","maintainers":[{"name":"craigparra","email":"craigparra@gmail.com"}],"contributors":[{"url":"Anthropic","name":"Claude"},{"name":"Apache Camel — design inspiration and pattern source"}],"homepage":"https://github.com/alt-javascript/camel-lite#readme","bugs":{"url":"https://github.com/alt-javascript/camel-lite/issues"},"dist":{"shasum":"c85391091bb429df425ae6d7e8042a205fe4f4f7","tarball":"https://registry.npmjs.org/@alt-javascript/camel-lite-component-log/-/camel-lite-component-log-1.0.2.tgz","fileCount":8,"integrity":"sha512-e3cbsoBzFzwnl3xnmeohG3lVd8WglV/Pnd8kOwiEiflkiAOsZZJ43SVjHxVyzZ8fanFX+DM3G9ocs+dbMacZlA==","signatures":[{"sig":"MEQCIEQD+V22cSVHb9CNYmsNrEHzafukFK0lfdBLKQn172FgAiBaKWGpGcrOEmmjXcI4ox2E46jug6ywjzRWJxZLNCD87Q==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@alt-javascript%2fcamel-lite-component-log@1.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":13422},"type":"module","exports":{".":"./src/index.js"},"gitHead":"9f948b9f02d85c9f593229684c475cd209369f2c","scripts":{"test":"node --test"},"_npmUser":{"name":"craigparra","email":"craigparra@gmail.com"},"repository":{"url":"git+https://github.com/alt-javascript/camel-lite.git","type":"git"},"_npmVersion":"11.9.0","description":"[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)","directories":{},"_nodeVersion":"24.14.0","dependencies":{"@alt-javascript/common":"^3.0.7","@alt-javascript/config":"^3.0.7","@alt-javascript/logger":"^3.0.7","@alt-javascript/camel-lite-core":"1.0.2"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/camel-lite-component-log_1.0.2_1774595610411_0.8886029448204811","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@alt-javascript/camel-lite-component-log","version":"1.1.0","keywords":["alt-javascript","camel","camel-lite","eai","eip","integration","log","logging","component"],"author":{"name":"Craig Parravicini"},"_id":"@alt-javascript/camel-lite-component-log@1.1.0","maintainers":[{"name":"craigparra","email":"craigparra@gmail.com"}],"contributors":[{"url":"Anthropic","name":"Claude"}],"homepage":"https://github.com/alt-javascript/camel-lite#readme","bugs":{"url":"https://github.com/alt-javascript/camel-lite/issues"},"dist":{"shasum":"b0f6e22ca52f8ea8bfc1b7aa3f680ace021934c5","tarball":"https://registry.npmjs.org/@alt-javascript/camel-lite-component-log/-/camel-lite-component-log-1.1.0.tgz","fileCount":8,"integrity":"sha512-F1DNo0tkU7W78/cdc528xZZNb3VCcRZKXnC6pBl2Eyw6DFog1vZduioz79T60cgEOLLUB28pAl8RvKLz0rymqg==","signatures":[{"sig":"MEYCIQDKaDxxqqn3yU41ak8MnZGfCZ/y+MbusmXx4Ndn/Mm5ZwIhAMOB1ooEe/MmOtcmdM6oZQFYHUNU41FFH0/FzFolQSKG","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@alt-javascript%2fcamel-lite-component-log@1.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":13360},"type":"module","exports":{".":"./src/index.js"},"gitHead":"c227a03632d4b1e2f93b4562c7e74f52ba87d340","scripts":{"test":"node --test"},"_npmUser":{"name":"craigparra","email":"craigparra@gmail.com"},"repository":{"url":"git+https://github.com/alt-javascript/camel-lite.git","type":"git"},"_npmVersion":"11.9.0","description":"[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)","directories":{},"_nodeVersion":"24.14.0","dependencies":{"@alt-javascript/common":"^3.0.7","@alt-javascript/config":"^3.0.7","@alt-javascript/logger":"^3.0.7","@alt-javascript/camel-lite-core":"1.1.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/camel-lite-component-log_1.1.0_1774763514382_0.08237731013637717","host":"s3://npm-registry-packages-npm-production"}},"1.1.1":{"name":"@alt-javascript/camel-lite-component-log","version":"1.1.1","type":"module","exports":{".":"./src/index.js"},"dependencies":{"@alt-javascript/common":"^3.0.7","@alt-javascript/config":"^3.0.7","@alt-javascript/logger":"^3.0.7","@alt-javascript/camel-lite-core":"1.1.1"},"scripts":{"test":"node --test"},"repository":{"type":"git","url":"git+https://github.com/alt-javascript/camel-lite.git"},"author":{"name":"Craig Parravicini"},"contributors":[{"name":"Claude","url":"Anthropic"}],"keywords":["alt-javascript","camel","camel-lite","eai","eip","integration","log","logging","component"],"publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"gitHead":"ff8501eed381d38ac20f56aea721274466d64212","_id":"@alt-javascript/camel-lite-component-log@1.1.1","description":"[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)","bugs":{"url":"https://github.com/alt-javascript/camel-lite/issues"},"homepage":"https://github.com/alt-javascript/camel-lite#readme","_nodeVersion":"24.14.0","_npmVersion":"11.9.0","dist":{"integrity":"sha512-GjZA7MQKN/CLMNuHK5T4p4bVSSNW6aHjjV9g0D2Z+znReUEK4Bv3UqbQfGMFsJ/DMAO4t+atI7cbXD9CY8SeqA==","shasum":"5be5cbe4e6dc7c1393ebbb4196d8fde9c0cf0931","tarball":"https://registry.npmjs.org/@alt-javascript/camel-lite-component-log/-/camel-lite-component-log-1.1.1.tgz","fileCount":8,"unpackedSize":13360,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@alt-javascript%2fcamel-lite-component-log@1.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCeiT5WlV8mT1X6CSjfRHLo90GxGTYaRfdJJSYAnS2QAgIgLLbGvCw0SaPzuawcqDFD1QQ6BT5L9ttzAgIq60qR5n8="}]},"_npmUser":{"name":"craigparra","email":"craigparra@gmail.com"},"directories":{},"maintainers":[{"name":"craigparra","email":"craigparra@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/camel-lite-component-log_1.1.1_1774764467692_0.33165301646095835"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-27T07:13:30.322Z","modified":"2026-03-29T06:07:48.138Z","1.0.2":"2026-03-27T07:13:30.538Z","1.1.0":"2026-03-29T05:51:54.550Z","1.1.1":"2026-03-29T06:07:47.849Z"},"bugs":{"url":"https://github.com/alt-javascript/camel-lite/issues"},"author":{"name":"Craig Parravicini"},"homepage":"https://github.com/alt-javascript/camel-lite#readme","keywords":["alt-javascript","camel","camel-lite","eai","eip","integration","log","logging","component"],"repository":{"type":"git","url":"git+https://github.com/alt-javascript/camel-lite.git"},"description":"[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)","contributors":[{"name":"Claude","url":"Anthropic"}],"maintainers":[{"name":"craigparra","email":"craigparra@gmail.com"}],"readme":"[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\n## What\n\nStructured logging via [`@alt-javascript/logger`](https://www.npmjs.com/package/@alt-javascript/logger). Sends the exchange body (stringified if not already a string) to the named logger at the configured level. Producer-only — no consumer.\n\n## Install\n\n```sh\nnpm install camel-lite-component-log @alt-javascript/logger @alt-javascript/config @alt-javascript/common\n```\n\n## URI Syntax\n\n```\nlog:loggerName[?level=info]\n```\n\n| Segment / Parameter | Default | Description |\n|---------------------|---------|-------------|\n| `loggerName`        | *(required)* | Logger category name (case-preserved). Passed directly to `LoggerFactory.getLogger`. |\n| `level`             | `info`  | Log level: `trace`, `debug`, `info`, `warn`, or `error`. |\n\n## Usage\n\n```js\nimport { CamelContext } from 'camel-lite-core';\nimport { LogComponent } from 'camel-lite-component-log';\n\nconst context = new CamelContext();\ncontext.addComponent('log', new LogComponent());\n\ncontext.addRoutes({\n  configure(ctx) {\n    ctx.from('direct:ingest')\n      .to('log:com.example.ingest?level=debug')\n      .process(exchange => {\n        // continue processing after log\n      });\n  }\n});\n\nawait context.start();\n\nconst template = context.createProducerTemplate();\nawait template.sendBody('direct:ingest', { id: 1, value: 'hello' });\n\nawait context.stop();\n```\n\n## See Also\n\n[camel-lite — root README](../../README.md)\n","readmeFilename":"README.md"}