Formatting log output from multiple sources