As root, edit /etc/dnsmasq.conf, adding the following 2 lines wherever you like in the file:

log-queries

log-facility=/var/log/dnsmasq.log