Updated logging in views