hb-smart-logger 1.0.1 → 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 +20 -17
- 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,13 +133,16 @@ 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
|
-
|
|
136
|
+
|
|
137
|
+
| Feature | `console.log` | `winston` | **HB Smart Logger** |
|
|
138
|
+
|--------|---------------|-----------|---------------------|
|
|
139
|
+
| Daily log rotation | ❌ | ❌ | ✅ |
|
|
140
|
+
| Circular JSON safe | ❌ | ❌ | ✅ |
|
|
141
|
+
| Per-level log files | ❌ | ⚠️ | ✅ |
|
|
142
|
+
| Combined log file | ❌ | ⚠️ | ✅ |
|
|
143
|
+
| `logger.log()` alias | ❌ | ❌ | ✅ |
|
|
144
|
+
| Multi-argument logging | ❌ | ❌ | ✅ |
|
|
145
|
+
| Ready-to-use defaults | ❌ | ⚠️ | ✅ |
|
|
143
146
|
|
|
144
147
|
## 📌 Requirements
|
|
145
148
|
|
package/package.json
CHANGED