Skip to content

Modern Log LogEvent AddInt

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

Home › Logging › Logging › LogEvent.AddInt

LogEvent.AddInt

Adds a named integer field, which stays a number in JSON output.

Syntax

AddInt( k, v as int64 )

Examples

#import "std/logs"
using logs

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

lg.Info( ).AddInt( "rows", 1200 ).AddInt( "skipped", -3 ).Msg( "loaded" )

Library: Logging
Category: Logging
Documented under: Members

Clone this wiki locally