Step 2: ast logging