Skip to content
FutureBlitz

    Install

    Import std.log.level

    ParseLogLevel

    std.log.level

    function

    Public Function ParseLogLevel(text: String): LogLevel?

    The level a name says, in any letter case: "trace", "debug", "info", "warn" or "warning", "error", or "off". Null for anything else.

    Examples

    Expect(ParseLogLevel("Warning") == LogLevel.WARN)
    Expect(ParseLogLevel("loud") == Null)

    std/log/level.fb, line 39

    Report an issue with this page or with FutureBlitz on GitHub.