Updated logging to use more django standard format