Changing log function declaration