Function logLevelEnumToStringKey

Helper to convert the numeric (or the string key) value of ELogLevel to its string key (left hand side) The string key value is case-insensitive.

  • Parameters

    • logLevel:
          | "error"
          | "fatal"
          | "critical"
          | "notice"
          | "trace"
          | "warn"
          | "log"
          | "ok"
          | "info"
          | "verbose"
          | "debug"
          | "silly"
          | ELogLevel
          | "NONE"

      the numeric (or string key) value of ELogLevel

    Returns
        | "error"
        | "fatal"
        | "critical"
        | "notice"
        | "trace"
        | "warn"
        | "log"
        | "ok"
        | "info"
        | "verbose"
        | "debug"
        | "silly"
        | "NONE"

    number the string key of the ELogLevel