@wgtechlabs/log-engine 1.2.0 → 1.2.1

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 CHANGED
@@ -255,11 +255,11 @@ Log messages are beautifully formatted with colorized timestamps, levels, and sm
255
255
 
256
256
  ```bash
257
257
  # Example colorized output (colors visible in terminal)
258
- [2025-05-29T16:57:45.678Z][4:57 PM][DEBUG]: Debugging application flow
259
- [2025-05-29T16:57:46.123Z][4:57 PM][INFO]: Server started successfully
260
- [2025-05-29T16:57:47.456Z][4:57 PM][WARN]: API rate limit approaching
261
- [2025-05-29T16:57:48.789Z][4:57 PM][ERROR]: Database connection failed
262
- [2025-05-29T16:57:49.012Z][4:57 PM][LOG]: Application startup complete
258
+ [2025-05-29T16:57:45.678Z][4:57PM][DEBUG]: Debugging application flow
259
+ [2025-05-29T16:57:46.123Z][4:57PM][INFO]: Server started successfully
260
+ [2025-05-29T16:57:47.456Z][4:57PM][WARN]: API rate limit approaching
261
+ [2025-05-29T16:57:48.789Z][4:57PM][ERROR]: Database connection failed
262
+ [2025-05-29T16:57:49.012Z][4:57PM][LOG]: Application startup complete
263
263
  ```
264
264
 
265
265
  **Color Scheme:**
package/dist/formatter.js CHANGED
@@ -25,7 +25,7 @@ class LogFormatter {
25
25
  hour: 'numeric',
26
26
  minute: '2-digit',
27
27
  hour12: true
28
- });
28
+ }).replace(/\s+/g, '');
29
29
  const levelName = this.getLevelName(level);
30
30
  const levelColor = this.getLevelColor(level);
31
31
  // Apply colors to each component for better readability
@@ -47,7 +47,7 @@ class LogFormatter {
47
47
  hour: 'numeric',
48
48
  minute: '2-digit',
49
49
  hour12: true
50
- });
50
+ }).replace(/\s+/g, '');
51
51
  // Apply colors to each component for better readability
52
52
  const coloredTimestamp = `${LogFormatter.colors.gray}[${isoTimestamp}]${LogFormatter.colors.reset}`;
53
53
  const coloredTimeString = `${LogFormatter.colors.cyan}[${timeString}]${LogFormatter.colors.reset}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wgtechlabs/log-engine",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "A lightweight and efficient logging utility designed specifically for bot applications running on Node.js.",
5
5
  "keywords": [
6
6
  "logging",