switch logger for print