log all header output as well as commands and their output