Adding console output to logger