Add logging methods to the web worker.