Skip to content

Modern Log LogEvent AddUInt

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

Home › Logging › Logging › LogEvent.AddUInt

LogEvent.AddUInt

Adds a named unsigned 64-bit integer field.

Syntax

AddUInt( k, v as uint64 )

Examples

#import "std/logs"
using logs

dim con as ConsoleSink
dim lg as Logger
lg.AddSink( @con )

'' Unsigned, so a value above LongInt's range keeps its magnitude
'' instead of appearing as a negative number
lg.Info( ).AddUInt( "bytes", 18446744073709551615ull ).Msg( "counted" )

Library: Logging
Category: Logging
Documented under: Members

Clone this wiki locally