• This will check if logLevel parameter is a valid string value which corresponds to keys of LogLevel enum. Numeric values (enum indexes) are not allowed to make it more explicit which log level is selected. If value is not valid - a warning message will be logged with a logger initialized using default config. We log a warning instead of throwing an error because there is a fallback logic to use INFO (in prod env) or DEBUG (in other envs) if incorrect value is configured.

    Parameters

    • value: string
    • Rest ...args: any[]

    Returns "" | "FATAL" | "ERROR" | "WARN" | "INFO" | "DEBUG" | "TRACE"

Generated using TypeDoc