Function asText [src]

Returns a string literal of the given level in full text form.

Prototype

pub fn asText(comptime self: Level) []const u8

Parameters

self: Level

Source

pub fn asText(comptime self: Level) []const u8 { return switch (self) { .err => "error", .warn => "warning", .info => "info", .debug => "debug", }; }