use logger with customizable log level for printing detailed information