Function logLevelEnumToNumberVal

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

  • Parameters

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

      the string (or numeric) value of ELogLevel

    Returns ELogLevel

    numeric value of the ELogLevel