Changed logging to use the process dictionary