adamA
Convex Community10mo ago
9 replies
adam

Convex function logging

A request for automatic logging middleware at the Convex platform level with the following capabilities:

Automatic Function Logging
- Log function arguments and return values automatically
- No manual console.log statements required in code
- Especially helpful for functions with multiple return points

Dashboard Controls
- Toggle logging on/off through the Convex dashboard
- Control logging at environment level (dev, staging, prod)
- Enable temporary debugging in non-development environments

Benefits
- Troubleshooting issues in production or staging environments
- Avoid cluttering code with temporary logging statements
- Needing to understand data flow without modifying code
- Quickly enabling/disabling logging as needed (default to off)
Was this page helpful?