voltlog-io 1.0.2 â 1.0.3
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 +0 -27
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/voltlog-io)
|
|
6
6
|
[](https://opensource.org/licenses/MIT)
|
|
7
|
-
[](https://github.com/rohittiwari-dev/voltlog-io/actions)
|
|
8
7
|
[](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
|
package/package.json
CHANGED