pretty format log