Skip to main content

LoggerNumericLevels interface

The numeric levels of the log level names.

Signature​

export interface LoggerNumericLevels extends Readonly<Record<LogLevel, number>>

Extends: Readonly<Record<LogLevel, number>>

Remarks​

It is the type of Logger.numericLevels. The properties are the level names of LogLevel, and their values are the numeric levels, which are kept as literal types, so that the compiler knows the exact values. Higher values mean more verbosity.

Properties​

Property

Modifiers

Type

Description

all

readonly

70

The numeric level of all, the highest level.

debug

readonly

50

The numeric level of debug.

error

readonly

10

The numeric level of error.

info

readonly

30

The numeric level of info.

silent

readonly

0

The numeric level of silent, the lowest level.

trace

readonly

60

The numeric level of trace.

verbose

readonly

40

The numeric level of verbose.

warn

readonly

20

The numeric level of warn.


Generated via tsdoc2docusaurus 1.3.2 by API Extractor/Documenter 7.60.1.