better logging of multi line commands