Adds logging to tree manipulation methods