Display Function Logs in Reverse Chronological Order (Latest to Oldest)
- 3
- General
- Functions
- Web
- Cloud
Is there a way to display function logs in reverse chronological order (latest to oldest) for a better user experience? It would be beneficial as it allows users to easily track and analyse the most recent events, helping with debugging and troubleshooting. is there any possibility for this? Thank you.
Yeah there is a way.
const sortedFunctions= [Array Of Function Executions].sort((a, b) => b.[executionTimeStamp].toLocaleString().localeCompare(a.[executionTimeStamp].toLocaleString())
);
//store `sortedFunctions` and display.
[Array Of Function Executions] = get an array of all executions.. in which [executionTimeStamp] is the timestamp of execution.
Oh you are pointing out Appwrite Console?
Sorry, If I am not clear
Okok
I thought that you want , them in your app. to show them to users.
Creat a GitHub issue for this.
No sandeep, I was looking for something in console
right
since, it's a done project, they can't do it immediately. but we can create a github issue.
If you dont mind can you specify the repo?
Thanks @Sandeep K. Dasari
I think this is in purpose Check this https://discord.com/channels/564160730845151244/1115949474628501535/1116024299279614045
Recommended threads
- how think about relationships?
From what I understand, relationships don't work like foreign keys. So, two things: Is the way to simulate foreign keys to manually pass references to IDs? In...
- Appwrite - Github student plan payment
Even though I have the GitHub Student package, I received a notification saying I would be switched to a pay-as-you-go plan. (It said that I could use AppWrite ...
- Function executions not getting logged b...
Hello, I have just upgraded on a self-hosted 1.8.1 to 1.9.0 and I have a strange bug where my functions are no longer showing executions in the console, howeve...