Add argument on queryLog method