print functions changed to loggers