changed Logger to implement the io.Writer interface