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
Copy file name to clipboardExpand all lines: README.md
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
5
5
[](https://opensource.org/licenses/MIT)[](https://nodejs.org/)
6
6
7
-
**Advanced Console Log (ACL)**, available as the `advanced-console-log` NPM package, is a lightweight logging module for Node.js applications. It supports console and file logging with various levels, colors, and additional features such as memory usage tracking and caller information.
7
+
**Advanced Console Log (ACL)**, available as the `advanced-console-log` NPM package, is a lightweight logging module for Node.js applications. It supports console and file logging with various levels, colors, and additional features such as memory usage tracking and caller information. ACL prioritizes performance by using lazy loading, ensuring efficient resource management.
-**Advanced Configuration Options**: Provides extensive [configuration options](docs/configuration-options.md) such as memory display modes, caller info inclusion levels, and more.
16
-
-**Multiple Log Levels**: Supports six logging levels (debug, log, info, warn, error, fatal) to categorize and prioritize log messages.
16
+
-**Multiple Log Levels**: Supports six logging levels (`debug`, `log`, `info`, `warn`, `error`, `fatal`) to categorize and prioritize log messages.
17
17
-**Console Logging**: Outputs log messages to the console with color-coded and formatted output based on log level.
18
18
-**File Logging**: Optionally logs messages to a specified file, with separate control over the log level for file output.
19
19
-**Asynchronous Logging Modes**: Supports multiple asynchronous logging modes ("async", "async-queue", "worker") for non-blocking operations in high-throughput environments.
@@ -28,9 +28,9 @@
28
28
29
29
### Advanced Information Tracking
30
30
31
-
-**Caller Information**: Includes caller information (file, function, line, and column) in log messages based on log level and configuration.
32
-
-**Inline Caller Information**: Displays inline caller information within log messages for quick debugging reference.
33
-
-**Memory Usage Tracking**: Tracks and displays memory usage, either in MB or percentage format, based on configuration.
31
+
-**Caller Information**: Includes caller information (file, function, line, and column) in log messages based on log level and configuration. (2 modes available)
32
+
-**Inline Caller Information**: Displays inline caller information within log messages for quick debugging reference. (3 modes available)
33
+
-**Memory Usage Tracking**: Tracks and displays memory usage, either in MB or percentage format, based on configuration. (Uses color to provide a visual warning as usage increases)
Memory usage tracking is an optional feature that can be enabled using the `includeMemoryUsage` configuration. If this information is not needed, disable memory tracking to reduce the computational cost associated with collecting and formatting memory statistics.
82
82
83
83
-**`includeMemoryUsage`**: Set to `false` to disable memory usage tracking.
84
-
-**`memoryCheckFrequency`**: If memory tracking is required, adjust the frequency of checks to reduce performance impact.
84
+
-**`memoryUpdateInterval`**: If memory tracking is required, adjust the frequency of checks (in ms) to reduce performance impact. Use a larger value to limit the frequency of memory checks.
0 commit comments