@connexup/logging-next
v0.0.2
Published
This is a small NextJS logger lib to work with KAFKA, will send logs to KAFKA and then we can collect logger in log service.
Keywords
Readme
Logger for NextJS with Kafka
This is a small NextJS logger lib to work with KAFKA, will send logs to KAFKA and then we can collect logger in log service.
How to use
Add in instrumentation.ts:
if (process.env.NEXT_RUNTIME === "nodejs") {
// instrumentation will run in both edge/runtime, so have to add this condition check to run this code
(await import("@connexup/logging-next")).register({
app: YOUR_APP_NAME,
host: YOUR_KAFKA_HOST,
});
}About
This package is maintained and used by Connexup.
