Can you log it as a JSON document? You can construct it with JSONObject and then do toString(4) to get a nice pretty printed JSON document with indentation.