meaning of beating out a log

beating out a log meaning in Urban Dictionary

masturbating while pooping