formatting logs for structured data