Updated logging function in brackets