added a error logging for the case cannot find a required logger