Correct output format for logger.
Fix compilation errors.