• Converts the FAUNA_DEBUG environment variable (string) into a LogLevel. The intended use is to set FAUNA_DEBUG=0|1|2|3|4.

    This function will convert null, undefined, empty, or or any non matching string to a LogLevel of OFF.

    Parameters

    • debug_level: undefined | string

      The String value of FAUNA_DEBUG.

    Returns LogLevel