change print for logger