I think the woodpecker may be telling you something tasty is in your logs, whether it is those carpenter bees or something else. I, personally, would not go around beating my head on a log unless there was something in it for me.