stdout or stderr is captured in runner logs.
Runner Logs vs Request Logs
- Runner logs are logs produced by a runner process over its lifetime (startup, setup, and request handling).
- Request logs are the portion of runner logs emitted while a specific request is being processed.
Request logs (the logs visible to an end user for a request) are a time-scoped subset of runner logs.
Basic Logging with print
For quick debugging, print() is enough:
stdout and stderr are collected.
Application Logging with Python logging
For production apps, use Python’s standard logging module so you can control log levels and message format.
Log Sources
When filtering logs bysource, you’ll commonly see:
run: logs from runners created byfal rungateway: logs from runners serving deployed appsdeploy: logs emitted by the deployment process itself when usingfal deploy
Where to View Logs
- In the fal dashboard, with filters for runner ID, request ID, version ID and source
- In the CLI with
fal runners logs <runner-id> - In request-level log views for each request
- In Model APIs via the Queue API for request-level logs