log control, pretty print