change the way to print log