Use formatter to format log output.