Skip to content

Modern Log LevelNameShort

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

Home › Logging › Logging › LevelNameShort

LevelNameShort

Returns a level's three-letter name, such as "WRN".

Syntax

LevelNameShort( lv ) as ustring

Examples

#import "std/logs"
using logs

print LevelNameShort( LOG_TRACE )    '' TRC
print LevelNameShort( LOG_INFO )     '' INF
print LevelNameShort( LOG_FATAL )    '' FTL

'' Three characters for every level, so a log column lines up without
'' padding -- which LevelName, running from TRACE to WARN, does not

Library: Logging
Category: Logging
Documented under: Levels

Clone this wiki locally