Formats a single LogEvent as a CLEF JSON string.
LogEvent
CLEF (Compact Log Event Format) is the standard wire format for Seq and compatible with the Serilog ecosystem.
the log event to format
Optional
optional serialization limits
a single-line JSON string in CLEF format
const line = formatClef(event);// '{"@t":"2026-04-20T14:30:00.123Z","@mt":"User {UserId} signed in","UserId":"usr_abc"}' Copy
const line = formatClef(event);// '{"@t":"2026-04-20T14:30:00.123Z","@mt":"User {UserId} signed in","UserId":"usr_abc"}'
Formats a single
LogEventas a CLEF JSON string.CLEF (Compact Log Event Format) is the standard wire format for Seq and compatible with the Serilog ecosystem.