Add Logger for dealloc methods.