• Converts a string-based level into a SeverityLevel, normalizing it along the way.

    Parameters

    • level: string

      String representation of desired SeverityLevel.

    Returns SeverityLevel

    The SeverityLevel corresponding to the given string, or 'log' if the string isn't a valid level.

Generated using TypeDoc