dumpVar: only available in dev mode
Also implements logging through the common `log` macros.
This makes it agnostic to the internal topology on the server hosting the worker.