Modify to log with the priority level