Skip to main content

LogLevel type alias

Type of the strings recognised as valid level names.

Signature​

export type LogLevel = 'silent' | 'error' | 'warn' | 'warning' | 'info' | 'verbose' | 'debug' | 'trace' | 'all';

Remarks​

Internally these strings are converted into numeric values (see Logger.numericLevels), and these numbers are used in comparisons.

Higher values mean more verbosity.

Since v7.0.0, warning is the main name of this level, and warn is kept for compatibility: both have the same numeric level. The level getter returns the name that was set, so code that compares the level name must test both, or use Logger.isLevel().


Generated via tsdoc2docusaurus 1.3.2 by API Extractor/Documenter 7.60.1.