use logger to print messages