Creates a file sink that writes CLEF-formatted log events.
Supports size-based, time-based, and hybrid rotation strategies.
file sink configuration
a LogSink that appends to a file
LogSink
const sink = fileSink({ path: './logs/app.log', rotation: { strategy: 'time', interval: 'daily', retainCount: 30 },}); Copy
const sink = fileSink({ path: './logs/app.log', rotation: { strategy: 'time', interval: 'daily', retainCount: 30 },});
Creates a file sink that writes CLEF-formatted log events.
Supports size-based, time-based, and hybrid rotation strategies.