write logs to JSON objects for now