Improve command log output