Function levelZLogField

  • Creates a log level field.

    By default, log level is written as [LEVEL], where LEVEL is an upper-case abbreviation.

    Parameters

    • format: ((this, level) => string) = defaultZLogLevelFormat

      Log level format. A function accepting log level and returning its string representation.

        • (this, level): string
        • Parameters

          Returns string

    Returns ZLogField

    Log level field.

Generated using TypeDoc