You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -19,7 +19,7 @@ Log Engine transforms your development experience from chaotic debugging session
19
19
-**Lightweight & Fast**: Minimal overhead with maximum performance - designed to enhance your application, not slow it down.
20
20
-**No Learning Curve**: Dead simple API that you can master in seconds. No extensive documentation, complex configurations, or setup required - Log Engine works instantly.
21
21
-**Colorized Console Output**: Beautiful ANSI color-coded log levels with intelligent terminal formatting - instantly identify message severity at a glance with color-coded output.
22
-
-**Multiple Log Levels**: Support for DEBUG, INFO, WARN, ERROR, and SILENT levels with smart filtering - just set your level and let it handle the rest.
22
+
-**Multiple Log Modes**: Support for DEBUG, INFO, WARN, ERROR, SILENT, OFF, and special LOG levels with smart filtering - just set your mode and let it handle the rest.
23
23
-**Auto-Configuration**: Intelligent environment-based setup using NODE_ENV variables. No config files, initialization scripts, or manual setup - Log Engine works perfectly out of the box.
24
24
-**Enhanced Formatting**: Structured log entries with dual timestamps (ISO + human-readable) and colored level indicators for maximum readability.
25
25
-**TypeScript Ready**: Full TypeScript support with comprehensive type definitions for a seamless development experience.
-`LogMode.SILENT` (4) - Critical only: shows LOG messages only
182
+
-`LogMode.OFF` (5) - Complete silence: shows no messages at all
183
+
184
+
### Message Severity Levels
185
+
186
+
Individual log messages have severity levels that determine their importance:
129
187
130
188
-`LogLevel.DEBUG` (0) - Detailed information for debugging
131
189
-`LogLevel.INFO` (1) - General information
132
190
-`LogLevel.WARN` (2) - Warning messages
133
191
-`LogLevel.ERROR` (3) - Error messages
134
-
-`LogLevel.SILENT` (4) - No output
192
+
-`LogLevel.LOG` (99) - Critical messages that always show (except when OFF mode is set)
135
193
136
194
### Auto-Configuration
137
195
138
196
Log Engine automatically configures itself based on the `NODE_ENV` environment variable:
139
197
140
-
-`production` → `LogLevel.WARN`
141
-
-`development` → `LogLevel.DEBUG`
142
-
-`test` → `LogLevel.ERROR`
143
-
-`default` → `LogLevel.INFO`
198
+
-`development` → `LogMode.DEBUG` (most verbose)
199
+
-`production` → `LogMode.INFO` (balanced)
200
+
-`staging` → `LogMode.WARN` (focused)
201
+
-`test` → `LogMode.ERROR` (minimal)
202
+
-`default` → `LogMode.INFO` (balanced)
203
+
204
+
### Special LOG Level
205
+
206
+
The `LOG` level is special and behaves differently from other levels:
207
+
208
+
-**Always Visible**: LOG messages are always displayed regardless of the configured log mode (except when OFF mode is set)
209
+
-**Critical Information**: Perfect for essential system messages, application lifecycle events, and operational information that must never be filtered out
210
+
-**Green Color**: Uses green coloring to distinguish it from other levels
211
+
-**Use Cases**: Application startup/shutdown, server listening notifications, critical configuration changes, deployment information
0 commit comments