Skip to content

Modern Log LogEvent Close

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

Home › Logging › Logging › Sink.Close

Sink.Close

Closes a sink and releases what it holds; every kind of sink closes the same way.

Syntax

Close( )

Examples

#import "std/logs"
using logs

dim con as ConsoleSink

dim r as LogRecord
r.level = LOG_INFO
r.message = "before close"
con.Write( r )

con.Close( )                 '' releases whatever the sink holds

'' Part of the abstract Sink interface -- Write, Flush, Close and
'' DroppedCount -- so every sink can be shut down the same way

Library: Logging
Category: Logging
Documented under: Members

Clone this wiki locally