Skip to content

Modern Log LogEvent AddFloat

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

Home › Logging › Logging › LogEvent.AddFloat

LogEvent.AddFloat

Adds a named floating-point field.

Syntax

AddFloat( k, v as float64 )

Examples

#import "std/logs"
using logs

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

lg.Info( ).AddFloat( "elapsed_s", 1.25 ).AddFloat( "ratio", 0.1 + 0.2 ).Msg( "done" )

Library: Logging
Category: Logging
Documented under: Members

Clone this wiki locally