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.
Files changed (2) hide show
  1. package/README.md +20 -17
  2. 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
- ## Log Level ## Files Written
92
- **log() / info()**
93
- logs/info/ + logs/combined/
94
- **warn()**
95
- logs/warn/ + logs/combined/
96
- **error()**
97
- logs/error/ + logs/combined/
98
- **debug()**
99
- logs/debug/ + logs/combined/
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
- Feature console.log Winston HB Smart Logger
137
- Daily rotation ❌ ❌ ✅
138
- Circular JSON safe ❌ ❌ ✅
139
- Per-level files ⚠️
140
- Combined logs ⚠️
141
- logger.log() alias
142
- Ready-to-use ⚠️
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hb-smart-logger",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "Production-ready Winston logger with daily rotation, safe JSON handling, and logger.log() alias",
5
5
  "main": "src/index.js",
6
6
  "publishConfig": { "access": "public" },