Use own function to log.