Logger for query wordpress