voltlog-io 1.0.2 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -4,7 +4,6 @@
4
4
 
5
5
  [![npm version](https://img.shields.io/npm/v/voltlog-io?color=blue)](https://www.npmjs.com/package/voltlog-io)
6
6
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
7
- [![Build & Test](https://github.com/rohittiwari-dev/voltlog-io/actions/workflows/ci.yml/badge.svg)](https://github.com/rohittiwari-dev/voltlog-io/actions)
8
7
  [![Zero Dependencies](https://img.shields.io/badge/dependencies-0-brightgreen)](https://www.npmjs.com/package/voltlog-io)
9
8
 
10
9
  **VoltLog** is a modern, lightweight, and type-safe structured logger designed for high-throughput, real-time systems like IoT platforms, WebSocket servers (OCPP), and microservices.
@@ -15,26 +14,6 @@ For detailed guides, API reference, and advanced usage:
15
14
 
16
15
  ### [👉 https://ocpp-ws-io.rohittiwari.me/docs/voltlog-io](https://ocpp-ws-io.rohittiwari.me/docs/voltlog-io)
17
16
 
18
- ---
19
-
20
- ## âœĻ Why VoltLog?
21
-
22
- | Feature | Pino | Winston | VoltLog |
23
- | ------------------------- | ------------ | ------------- | ------------- |
24
- | Zero dependencies | ❌ (11 deps) | ❌ (10+ deps) | ✅ **0 deps** |
25
- | Type-safe generics | ❌ | ❌ | ✅ |
26
- | Middleware pipeline | ❌ | ❌ | ✅ |
27
- | Built-in redaction | Plugin | ❌ | ✅ |
28
- | Sampling / rate-limit | ❌ | ❌ | ✅ |
29
- | Alert rules | ❌ | ❌ | ✅ |
30
- | Error cause chain | ❌ | ❌ | ✅ |
31
- | Ring buffer | ❌ | ❌ | ✅ |
32
- | OCPP-aware | ❌ | ❌ | ✅ |
33
- | OpenTelemetry | Plugin | Plugin | ✅ Built-in |
34
- | File rotation (date+size) | Plugin | Plugin | ✅ Built-in |
35
- | HTTP request logging | Plugin | Plugin | ✅ Built-in |
36
- | AsyncLocalStorage context | ❌ | ❌ | ✅ Built-in |
37
-
38
17
  ## ðŸ“Ķ Installation
39
18
 
40
19
  ```bash
@@ -318,12 +297,6 @@ logger.warn("logged");
318
297
  logger.error("logged");
319
298
  ```
320
299
 
321
- | Scenario | VoltLog | Pino |
322
- | ----------------------------------------- | ------- | ------ |
323
- | Filtered log (e.g. DEBUG when level=INFO) | ~0.02Ξs | ~3-5Ξs |
324
- | Simple INFO with 1 transport | ~2-4Ξs | ~3-5Ξs |
325
- | 3 middleware + 2 transports | ~8-15Ξs | N/A |
326
-
327
300
  ## ðŸ›Ąïļ Graceful Shutdown
328
301
 
329
302
  ```ts