Add logger() to queries.log