Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access logs for apps hosted in a shiny server #14

Closed
williamlai2 opened this issue Nov 18, 2021 · 2 comments
Closed

Access logs for apps hosted in a shiny server #14

williamlai2 opened this issue Nov 18, 2021 · 2 comments

Comments

@williamlai2
Copy link

Hi, this is probably similar to #5. shinylogs works fine locally, but there does not seem to be any output anywhere when in shiny server. How do you access the logs? What settings should I be using? I have admin access and have had a look in the usual places including the log folder for the particular app.

@pvictor
Copy link
Member

pvictor commented Nov 18, 2021

Which storage mode did you use ?

For saving logs as Json files, you can do something like:

track_usage(storage_mode = store_json(path = "/var/log/shinylogs"))

and make sure :

  • path exist
  • is writeable, change permissions if needed

Then logs will be available in that folder

@williamlai2
Copy link
Author

Yes, that seems to work. I was just using track_usage(storage_mode = store_json(path = "logs/")) initially.

I changed it as per your advice. Created the folder then changed the chmod permissions. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants