Skip to content

Modern Log Flush

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

Home › Logging › Logging › Flush

Flush

Flushes every sink attached to the logger.

Syntax

Flush( )

Notes

  • reaches every attached sink

Examples

#import "std/logs"
using logs

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

lg.Info( "written" )
lg.Flush( )                  '' reaches EVERY attached sink

'' Worth calling before the process exits and before anything that might
'' abort: a buffered sink otherwise loses its tail

Library: Logging
Category: Logging
Documented under: Members

Clone this wiki locally