maqg for logs