> ## Documentation Index
> Fetch the complete documentation index at: https://docs.spurtest.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Log Step

> Use Log steps to assert against network requests and console logs during test execution.

The Log step lets you validate what happens behind the scenes during a test run. Instead of checking what the user sees on screen (that's what [Verify](/authoring-tests/test-side-peek/step-types/verify) does), Log steps assert against **network requests** and **browser console output** — giving you visibility into API calls, error messages, and other under-the-hood behavior.

You describe what you expect in plain language, and the Spur agent intelligently searches through the captured data to verify your assertion. It returns the matching evidence — the endpoint, a data snippet, and timestamp — so you can see exactly what it found.

## How to Add a Log Step

<Steps>
  <Step title="Type 'Log'">
    In the step editor, type `log` to insert a Log step. You can also type `/` and select **Log** from the step type menu.

    <Frame caption="Typing 'log' inserts a Log step with a teal badge">
      <img src="https://mintcdn.com/spur/ouU-TQ6bqhYcyB2r/images/Log/1.png?fit=max&auto=format&n=ouU-TQ6bqhYcyB2r&q=85&s=d1d533215a20ca0fd06a5cb321b55426" alt="" width="806" height="806" data-path="images/Log/1.png" />
    </Frame>
  </Step>

  <Step title="Write Your Assertion">
    After the `Log` prefix, describe what you want to validate in plain language. Spur Agent reads the actual network and console data captured during the run and evaluates your assertion.

    <Frame caption="Write a natural-language assertion about network or console behavior">
      <img src="https://mintcdn.com/spur/ouU-TQ6bqhYcyB2r/images/Log/2.png?fit=max&auto=format&n=ouU-TQ6bqhYcyB2r&q=85&s=796df91d5b5901f465e3694366db6653" alt="" width="1268" height="140" data-path="images/Log/2.png" />
    </Frame>
  </Step>

  <Step title="Run and View Results">
    Execute the test. The Log step result shows whether your assertion passed or failed, along with the evidence the agent used to make its determination.

    <Frame caption="The Log step result shows pass/fail and supporting evidence">
      <img src="https://mintcdn.com/spur/ouU-TQ6bqhYcyB2r/images/Log/3.png?fit=max&auto=format&n=ouU-TQ6bqhYcyB2r&q=85&s=6e33b65a14e3c5db6e449b96a4c36bc3" alt="" width="1226" height="1496" data-path="images/Log/3.png" />
    </Frame>
  </Step>
</Steps>

For use cases, available data, viewing logs in test results, best practices, limitations, and troubleshooting, see the full [Network & Console Monitoring](/additional-resources/network-console-monitoring) guide.
