Ruby mix-in for log functionality