remove print statements in logger

logger always prints information to stdout.
This is bad practice and conflicts with programs which write output to stdout.