Libraries
    Preparing search index...

    Function formatClef

    • Formats a single LogEvent as a CLEF JSON string.

      CLEF (Compact Log Event Format) is the standard wire format for Seq and compatible with the Serilog ecosystem.

      Parameters

      Returns string

      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"}'