Skip to content

LogLevel

1 min read

Import: import system.logging;

Read the usage guide for examples and common tasks. This reference lists the public declarations for this part of the library. See Reading API signatures for parameter and result notation.

LogLevel

Severity levels ordered from most to least verbose.

public enum LogLevel

Trace

Very detailed diagnostic messages.

Trace

Debug

Diagnostic messages useful during development.

Debug

Info

Messages describing normal operation.

Info

Warn

Warnings about recoverable problems.

Warn

Error

Messages reporting failures.

Error

level_name

Uppercase label for a severity level (TRACE … ERROR).

public fun level_name(level: LogLevel): string