printf to log