logger package
A levelled console logger for Node.js applications and libraries.
Remarks
The package exports the Logger class, which writes messages to the console from a given log level, and the types of its options. Create a logger with a level, then call its logging methods (error(), warn(), info(), verbose(), debug(), and trace()); a message is written only if the level of the logger is equal to or higher than that of the method.
The package is an ES module, and has no runtime dependencies.
Classes
|
Class |
Description |
|---|---|
|
The |
Interfaces
|
Interface |
Description |
|---|---|
|
Deprecated type of a record stored in the internal buffer. | |
|
The numeric levels of the log level names. | |
|
The options of the |
Type Aliases
|
Type Alias |
Description |
|---|---|
|
The arguments of the | |
|
Type of the console objects accepted by the logger. | |
|
Type of the function that writes a message. | |
|
Type of the strings recognised as valid level names. | |
|
Type of the numeric log level. |
Generated via tsdoc2docusaurus 1.3.2 by API Extractor/Documenter 7.60.1.