Welcome to winston-transport-openobserve 👋
Winston transport for openobserve.ai
Install
npm install winston-transport-openobserve
Usage
const transport = new OpenObserveTransport({
node: "https://api.openobserve.ai",
organization: "test",
stream: "default",
auth: {
username: "user@gmail.com",
password: "pwd",
},
});
const logger = winston.createLogger({
transports: [new winston.transports.Console(), transport],
format: winston.format.combine(
winston.format.timestamp(),
winston.format.json()
),
level: "debug",
});
logger.info("Hello world");
Author
👤 Shahid Kamal
Show your support
Give a ⭐️ if this project helped you!