fixed incorrect logging redirection at console