Updated logging to use getLog()