Updated logging to new format with in-module source declaration.