Allow logs to be set to a single log as a string by coercing logs to a flattened array. Do the same for the analyze_logs parameter.