winston-transport-openobserve
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

Welcome to winston-transport-openobserve 👋

Version Documentation License: MIT

Winston transport for openobserve.ai

🏠 Homepage

Demo

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!

Package Sidebar

Install

npm i winston-transport-openobserve

Weekly Downloads

24

Version

1.0.5

License

ISC

Unpacked Size

5.58 kB

Total Files

5

Last publish

Collaborators

  • shahidkamal