better formatting of logged command execution