add console messages
fix error in logger usage