I know how to see the live logs in posit connect cloud for a currently deployed app, and i can watch those notices fly by when the app is in use.
How can I download these logs. Specifically how can I download more than the last 50 lines? A programmatic way in the deployed app background would be fantastic.
Hi @Norcalbiostat
You can access more than 50 lines of log history via the History page, which you can access via one of the iconographic buttons at the top right while viewing a specific piece of content. I don't think the UI currently has a feature to present that as a download though, you'd need to copy/paste.
Could you clarify your idea / use case for "in the deployed app background"?
Thanks!
Mike
Engineer on Connect Cloud
When i access the history of the logs, I do not see all activity. For example, for an app that was deployed on 3/26, that had a lot of user activity on 3/27 (which i wanted to capture), the oldest listed activity in the history is from 4/2.
As for my programmatic way, i was meaning something like where you open a file, all of the messages that would get sent to the log get sent to that file, then after a time you close the log, or it closes after x amount of minutes not in use, and you can download this text file for viewing/analyzing.
So like, on 3/27 the student who created this app was giving a live demo in a class presentation, where the audience was logging into the app and doing stuff. there were a handful of problems that I could see while watching the logs zoom by in the posit connect cloud admin page, but i wasn't able to save any of that info for us to go through and try to fix some of the problems after.
it would be nice for the app developer (which could be a different person from the posit connect cloud admin) to be able to access deployment log messages using some sort of code/file dump. Does that make sense?
Hi again @Norcalbiostat
Ok, so from what I understand there may be one or two features here that you'd find helpful.
- Options to access complete log history for the application, regardless of log length. (The History view only offers 100 lines.)
- A way to grant access to the logs from code in the application's runtime environment.
I'm a little unsure about the needs for #2...if your student has sufficient access to publish the application in Connect Cloud, I'd expect them to be able to see the logs for the application they published in the same way you can as an admin --are you seeing something different?
Thanks for clarifying
Mike
I will add my vote to it being useful to be able to view as many log entries as possible. On apps that get reasonable traffic, they quickly fill up and 100 lines gives you little opportunity to spot problems that might have crashed the app. The current situation on connect cloud is also a degradation of the service offered on shinyapps.io
Good news -- our UI team added an initial ability to access more logs via the log panel. It is triggered by scrolling the log panel to the top. You should notice additional, older log lines get loaded in response.
We still realize that additional solutions like a bulk download option would be useful as well.
The thing is that I don't give publishing access to the cloud to the students. It's auto deployed from a github repo, so they just push to the (private) repo. I manage the deployment. Perhaps i'm missing something where I can give admin access to a single app/project on Connect Cloud to a single person, without them having access to the whole account (and thus sharing my login credentials)?