pass the callback and the logger when starting the custom server