wrap callback functions into error_logger messages