hb-smart-logger 1.0.1 → 1.0.2
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 +19 -18
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -87,16 +87,16 @@ logs/
|
|
|
87
87
|
```
|
|
88
88
|
|
|
89
89
|
## 📂 What Goes Where?
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
90
|
+
```bash
|
|
91
|
+
log() / info()
|
|
92
|
+
logs/info/ + logs/combined/
|
|
93
|
+
warn()
|
|
94
|
+
logs/warn/ + logs/combined/
|
|
95
|
+
error()
|
|
96
|
+
logs/error/ + logs/combined/
|
|
97
|
+
debug()
|
|
98
|
+
logs/debug/ + logs/combined/
|
|
99
|
+
```
|
|
100
100
|
|
|
101
101
|
## 🔄 Log Rotation (Built-In)
|
|
102
102
|
|
|
@@ -133,14 +133,15 @@ File-based logging for production systems
|
|
|
133
133
|
✔ Long-running Node.js services
|
|
134
134
|
|
|
135
135
|
## 🔥 Why HB Smart Logger?
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
136
|
+
```bash
|
|
137
|
+
Feature console.log Winston HB Smart Logger
|
|
138
|
+
Daily rotation ❌ ❌ ✅
|
|
139
|
+
Circular JSON safe ❌ ❌ ✅
|
|
140
|
+
Per-level files ❌ ⚠️ ✅
|
|
141
|
+
Combined logs ❌ ⚠️ ✅
|
|
142
|
+
logger.log() alias ❌ ❌ ✅
|
|
143
|
+
Ready-to-use ❌ ⚠️ ✅
|
|
144
|
+
```
|
|
144
145
|
## 📌 Requirements
|
|
145
146
|
|
|
146
147
|
Node.js >= 14
|
package/package.json
CHANGED