<PackageReference Include="Serilog.Formatting.Compact" Version="3.0.0" />

Serilog.Formatting.Compact.EventIdHash

public static class EventIdHash
Hash functions for message templates. See Compute.
public static uint Compute(string messageTemplate)

Compute a 32-bit hash of the provided messageTemplate. The resulting hash value can be uses as an event id in lieu of transmitting the full template string.