# Test Website Functions and See Every Call in the Log

> Run a safe test of any function with your own values, then follow every live call with its status, response code, duration and error. Export the log anytime.

- Canonical URL: https://uebfaqe.ai/features/function-logs
- Section: Features one by one
- Language: en
- Publisher: Uebfaqe (https://uebfaqe.ai)

## Summary

Each function has a test that changes no stored data and a calls log that records every run on the live site. You see at once whether it works and, if not, where it fails.

## Key facts

- A test that is safe: Fill in the inputs and run it. You see the result, the items it would add, update or remove and the emails it would send, and none of it really happens.
- Every call recorded: The Calls tab lists each run with its status, response code, duration and source, which is the website, a test or a scheduled task. Filter by status to find the errors.
- Numbers over time: Stats show the calls and errors of your functions with the average and p99 duration, and you can export the stats or the calls of a function as CSV or JSON.

Test before you publish, then watch every call

## How it works

1. **Open the function**: In Studio, open Functions and pick one from the list. Its page shows the inputs, the collections it reads and writes, and whether it is active.
2. **Run a test**: Type example values and click Run the test. The answer tells you whether the function is ready or needs a fix, and the AI can fix it for you from the chat.
3. **Check the calls**: After you publish, open the Calls tab to see every call from the site, or the Stats tab of Functions for totals, errors and durations over the range you pick.

## Frequently asked questions

### How do I test a serverless function before going live?

Open it in the Functions tab, enter sample inputs and click Run the test. The test shows the result and the changes the function would make, without saving any data or sending a single email.

### Where can I see the errors of my website functions?

In the Calls tab of each function. Every failed call is marked with its error and response code, and you can filter the list to show only the calls that failed.

### Why does my function show no calls yet?

Calls are recorded when the published site uses the function. Functions do not run inside the editor preview, so publish the site first and the calls appear as soon as visitors use the feature.

## Related features

- [Functions](https://uebfaqe.ai/features/serverless-functions): Add actions that really run, like sending a form or working out a price, written by the AI.
- [Usage](https://uebfaqe.ai/features/usage-stats): See how much space, how many database rows and how many function calls your site is using.
- [Scheduled tasks](https://uebfaqe.ai/features/scheduled-tasks): Set up jobs that run on their own on a schedule, like a report every morning or a cleanup every week, with a history of every run.

---

Source: https://uebfaqe.ai/features/function-logs
