Skip to content

VoltLog is a modern, lightweight, and type-safe structured logger designed specifically for high-throughput, real-time systems like IoT platforms, WebSocket servers (OCPP), and microservices.

License

Notifications You must be signed in to change notification settings

rohittiwari-dev/voltlog-io

VoltLog

Structured logger for real-time infrastructure

npm version License: MIT Build & Test

VoltLog is a modern, lightweight, and type-safe structured logger designed specifically for high-throughput, real-time systems like IoT platforms, WebSocket servers (OCPP), and microservices.

📚 Full Documentation

For detailed guides, API reference, and advanced usage, please visit:


✨ Key Features

  • 🚀 Zero-Dependency Core: Lightweight and fast.
  • 🔒 Secure: Built-in redaction for sensitive data.
  • 📊 High-Throughput: Intelligent sampling for cost control.
  • ⚡ Developer Friendly: Beautiful pretty printing for local dev.
  • 🔌 Flexible: Works in Node.js, Bun, Deno, and Browsers.

📦 Installation

npm install voltlog-io

🚀 Quick Start

import { createLogger, consoleTransport } from "voltlog-io";

const logger = createLogger({
  level: "INFO",
  transports: [consoleTransport()],
});

logger.info("Server started", { port: 3000, env: "production" });

Local Development

For readable, colored logs during development:

import { createLogger, prettyTransport } from "voltlog-io";

const logger = createLogger({
  level: "DEBUG",
  transports: [prettyTransport({ colorize: true })],
});

🤝 Contributing

Contributions are welcome! Please see our Contributing Guide.

License

MIT © Rohit Tiwari

About

VoltLog is a modern, lightweight, and type-safe structured logger designed specifically for high-throughput, real-time systems like IoT platforms, WebSocket servers (OCPP), and microservices.

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Sponsor this project

 

Packages

 
 
 

Contributors