Change the standard output to logger