node-logy 0.1.7 → 0.1.8
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 +22 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -35,4 +35,26 @@ await logger.flush()
|
|
|
35
35
|
[2026-02-07T15:33:41.588Z] [INFO]: Performance test log entry number 9
|
|
36
36
|
[2026-02-07T15:33:41.588Z] [INFO]: Performance test log entry number 10
|
|
37
37
|
[2026-02-07T15:33:41.588Z] [INFO]: Performance test log entry number 11
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
# Performance
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
=== Performance Test: 10,000 Log Lines ===
|
|
46
|
+
|
|
47
|
+
Total time (fire-and-forget): 32.82ms
|
|
48
|
+
Flush time: 8.496ms
|
|
49
|
+
|
|
50
|
+
=== Results ===
|
|
51
|
+
Fire-and-forget loop time: 31.91ms
|
|
52
|
+
Flush time: 8.49ms
|
|
53
|
+
Total end-to-end time: 40.90ms
|
|
54
|
+
Average time per log: 0.004ms
|
|
55
|
+
Throughput: 244496 logs/second
|
|
56
|
+
Memory used: 0.39 MB
|
|
57
|
+
Log file size: 721.57 KB
|
|
58
|
+
|
|
59
|
+
=== Test Complete ===
|
|
38
60
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-logy",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"description": "A lightweight Node.js logging utility that outputs logs to the console and writes them to rotating log files. Supports different log levels, timestamps, and customizable formatting for production-ready applications.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|