attach logger such that it gets passed to the worker