Rework logs #2618
Replies: 5 comments 1 reply
-
|
Beta Was this translation helpful? Give feedback.
-
[PR #2598 UPDATED] |
Beta Was this translation helpful? Give feedback.
-
Nice! The #2651 would benefit from this One thing that could really help with debugging community issues (which are growing rapidly 🚀) is the ability to easily download main logs from unmanaged Docker containers (like Coolify, servers, etc.). This would be very useful for support. I haven't tested the Drain Logs feature, so I'm not sure if it already captures these unmanaged logs. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
+1 here for API support for logs, either streamed or plain GETs like Portainer |
Beta Was this translation helpful? Give feedback.
-
1. Logs color
By default, 'docker logs' command don't support color by default.
I know that docker compose offers a 'tty' option to have the colors support , but this requires changing all docker-compose for supporting it.
2. Filter by dates
By default, time is added directly in the logs. 'docker logs'
I want to change the time for a more 'readable' way (Like 'Jun 20 14:10:10' with an hover to add more informations like timezone, etc...) and be able to sort the logs by date and time (by clicking it for example). The problem is that this requires me to process each line to manage the apparent times, etc... This risks impacting performance on large quantities of logs, especially with filters and line limitations.
(For logs and dates): My idea would have been to have an integrated service dedicated to logs. If we don't want to add a new service for that, for dates we can use '--since' parameter (with bash) for the date filter, however, this does not remove the 'workload' of adding a click event on the time or limitations about the command. For colors, we have to add parameters to docker-compose and see what it does.
3. Tabs for multiple container in one menu
When you jave, for example, a supabase service, you have a huge quantity of log 'card':
My idea is to create tabs for each of them.
4. Filters and download button
I've added a 'download logs' button but I'm wondering how to manage it when certain filters are activated and the number of lines. Should I download all the logs by default or should I take all the filters by default?
5. Raising line limits
The idea is to set a default limit and add a "show more" button on top if you want to see older logs. After that, we could imagine two buttons at the bottom right of the <pre> to go to the very top of the logs or to the very bottom. However, I don't know if 'docker logs' can handle something this complex. (That's why we've come up with the idea of an integrated service.)
6. Parsing the json logs format and proposing a way to 'unfold' it
What's your opinion ?
7. What about the hours already integrated by the services themselves?
If you have any opinions or suggestions, I'd love to hear them. If you have any additions you'd like to make, please feel free to discuss them here.
Thank you !
Beta Was this translation helpful? Give feedback.
All reactions