change the way to log