Skip to content

closeStream

closeStream(): void

Safely ends all open file streams and clears the internal stream registry. Streams are automatically closed on process exit, but this method can be called manually to flush buffers or stop file logging early.

zylog.closeStream();