Skip to content

Modern Log LevelName

Paul Squires edited this page Oct 19, 2026 · 5 revisions

Home › Logging › Logging › LevelName

LevelName

Returns a level's name, such as "WARN", or its number if it has no name.

Syntax

LevelName( lv ) as ustring

Examples

#import "std/logs"
using logs

print LevelName( LOG_TRACE )     '' TRACE
print LevelName( LOG_INFO )      '' INFO
print LevelName( LOG_FATAL )     '' FATAL

'' LOG_FATAL DOES NOT TERMINATE ANYTHING -- it is a severity, not an
'' action. A library that logs it has not decided to end your process.

Library: Logging
Category: Logging
Documented under: Levels

Clone this wiki locally