Options
All
  • Public
  • Public/Protected
  • All
Menu

tslog

Index

Type aliases

TLogLevelColor

TLogLevelColor: {}

Hex colors of different log levels

Type declaration

    TLogLevelId

    TLogLevelId: keyof ILogLevel

    Log level IDs (0 - 6)

    TLogLevelName

    TLogLevelName: ILogLevel[TLogLevelId]

    Log level names (silly - fatal)

    TRequestIdFunction

    TRequestIdFunction: () => string

    Function that generates a request ID.

    Type declaration

      • (): string
      • Returns string

    TTransportLogger

    TTransportLogger<T>: {}

    List of attached transport logger with their respective min log level.

    Type parameters

    • T

    Type declaration

      TUtilsInspectColors

      TUtilsInspectColors: "reset" | "bold" | "dim" | "italic" | "underline" | "blink" | "inverse" | "hidden" | "strikethrough" | "doubleunderline" | "black" | "red" | "green" | "yellow" | "blue" | "magenta" | "cyan" | "white" | "bgBlack" | "bgRed" | "bgGreen" | "bgYellow" | "bgBlue" | "bgMagenta" | "bgCyan" | "bgWhite" | "framed" | "overlined" | "gray" | "grey" | "redBright" | "greenBright" | "yellowBright" | "blueBright" | "magentaBright" | "cyanBright" | "whiteBright" | "bgGray" | "bgRedBright" | "bgGreenBright" | "bgYellowBright" | "bgBlueBright" | "bgMagentaBright" | "bgCyanBright" | "bgWhiteBright"

      Style and color options for utils._inspectAndHideSensitive.style

      WithMillisecond

      WithMillisecond<T>: T & "millisecond"

      Type parameters

      • T

      Variables

      DateTimeFormatPartTypes

      DateTimeFormatPartTypes: any

      Const callsitesSym

      callsitesSym: symbol = Symbol("callsites")

      Const fallback

      fallback: ((err: Error, stackTraces: CallSite[]) => unknown) | undefined = Error.prepareStackTrace

      Let lastPrepareStackTrace

      lastPrepareStackTrace: ((err: Error, stackTraces: CallSite[]) => unknown) | undefined = fallback

      Functions

      getCallSites

      • getCallSites(err: Error): CallSite[]

      prepareStackTrace

      • prepareStackTrace(err: Error, callsites: CallSite[]): CallSite[] | unknown
      • Parameters

        • err: Error
        • callsites: CallSite[]

        Returns CallSite[] | unknown

      Generated using TypeDoc