Feature request
Is your feature request related to a problem? Please describe.
No
I often debug front/backend problems that require viewing EDGE function logs precisely. I have a project with more than 30 EDGE functions. They create a lot of logs. The current get_logs tool dumps the logs for the past 24 hours. This is great but destroys the fine grained context needed to solve problems at hand. Often I trigger a specific issue and I need cursor to just see the logs for he past 5 minutes.
It would be great if get_logs provided additional parameters to help grab the relevant logs from the relevant EDGE function.
Describe the solution you'd like
get_logs fine grained control on time and service logs
A clear and concise description of what you want to happen.
the get_logs tool parameters allow LLMs to select time window and sub service such as a specific EDGE function to grab its logs
Describe alternatives you've considered
Currently I setup a python script that pokes the get_logs tool and then filters the output and provides that as context to cursor so it can focus on the issue
A clear and concise description of any alternative solutions or features you've considered.
One alternative might be to provide a logs option in the Supabase CLI. Currently there is not lgos sub-tool within the CLI, but that would be great as well
Additional context
The get_logs -> Edge functions tool call currently return 40,000 Chars in my project. and the LLM is 100% clueless as to the relevant one because it is so large since there are logs from many unrelated EDGE functions
Feature request
Is your feature request related to a problem? Please describe.
No
I often debug front/backend problems that require viewing EDGE function logs precisely. I have a project with more than 30 EDGE functions. They create a lot of logs. The current
get_logstool dumps the logs for the past 24 hours. This is great but destroys the fine grained context needed to solve problems at hand. Often I trigger a specific issue and I need cursor to just see the logs for he past 5 minutes.It would be great if
get_logsprovided additional parameters to help grab the relevant logs from the relevant EDGE function.Describe the solution you'd like
get_logsfine grained control on time and service logsA clear and concise description of what you want to happen.
Describe alternatives you've considered
Currently I setup a python script that pokes the
get_logstool and then filters the output and provides that as context to cursor so it can focus on the issueA clear and concise description of any alternative solutions or features you've considered.
One alternative might be to provide a
logsoption in the Supabase CLI. Currently there is not lgos sub-tool within the CLI, but that would be great as wellAdditional context
The get_logs -> Edge functions tool call currently return 40,000 Chars in my project. and the LLM is 100% clueless as to the relevant one because it is so large since there are logs from many unrelated EDGE functions