Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LogLevelConverter

Helper class to convert log level values.

see

LogLevel

Hierarchy

  • LogLevelConverter

Index

Methods

Static toInteger

  • Converts log level to a number.

    Parameters

    • level: LogLevel

      a log level to convert.

    Returns number

    log level number value.

Static toLogLevel

  • Converts numbers and strings to standard log level values.

    Parameters

    • value: any

      a value to be converted

    • Default value defaultValue: LogLevel = LogLevel.Info

      a default value if conversion is not possible

    Returns LogLevel

    converted log level

Static toString

  • Converts log level to a string.

    see

    LogLevel

    Parameters

    • level: LogLevel

      a log level to convert

    Returns string

    log level name string.

Generated using TypeDoc