
Security News
PodRocket Podcast: Inside the Recent npm Supply Chain Attacks
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
@mia-platform/kafkajs-pino-logger
Advanced tools
A custom Pino logger for KafkaJS that follows the Mia-Platform guidelines'
This library provides a pino custom logger for KafkaJS that follows Mia-Platform guidelines for logs
The package requires kafkajs
to work, to list the correct version you can run:
npm info "@mia-platform/kafkajs-pino-logger@latest" peerDependencies
To install the package you can run:
npm install @mia-platform/kafkajs-pino-logger --save
The package exposes a log creator that you can pass to the logCreator
option
when configuring your Kafka client.
const { Kafka } = require('kafkajs')
const PinoLogCreator = require('@mia-platform/kafkajs-pino-logger')
const kafka = new Kafka({
clientId: 'my-app',
brokers: ['kafka1:9092', 'kafka2:9092'],
logLevel: logLevel.ERROR,
logCreator: PinoLogCreator
})
The logs will have this form:
{"level":20,"time":1610718695,"pid":46244,"hostname":"test-host","logger":"kafkajs","extraKey":"Your extra","msg":"Your log message"}
2.0.1 - 2023-09-22
FAQs
A custom Pino logger for KafkaJS that follows the Mia-Platform guidelines'
The npm package @mia-platform/kafkajs-pino-logger receives a total of 177 weekly downloads. As such, @mia-platform/kafkajs-pino-logger popularity was classified as not popular.
We found that @mia-platform/kafkajs-pino-logger demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.