Separated command stdout and stderr
Factorized the logger extension code