Unified serializing for event logs